Within javascript’s scope, referring to HTMLDocument or HTMLElement raises error on IE8.
The error I get is “HTMLElement is undefined”.
What is the way to have JS interacting with native DOM object of this browser?
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.
In IE8 you have to use the
ElementandHTMLDocumentclasses. In IE7… nothing, because IE7 is terrible for standards. You have to rely on jQuery or other frameworks that wrap DOM elements.In my own framework I make this simple check:
Mind you that it’s not a framework for IE7 and lower.