Whats the difference between document.getElementById() and document.ie8_getElementById().
Whats the difference between document.getElementById() and document.ie8_getElementById().
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From MSDN:
In IE8 mode, getElementById performs a case-sensitive match on the ID attribute only. In IE7 mode and previous modes, this method performs a case-insensitive match on both the ID and NAME attributes.
In other words, it works like the rest of the world in ie8 mode. You should always call getElementById, it just works differently in different versions of ie.