Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet Explorer "Quirks mode" #26

Open
sbwMikael opened this issue Mar 24, 2016 · 0 comments
Open

Internet Explorer "Quirks mode" #26

sbwMikael opened this issue Mar 24, 2016 · 0 comments

Comments

@sbwMikael
Copy link

Hello,

All is well when Internet Explorer (9 in my test case) is running in Standards Mode. But when I create a page that triggers "Quirks mode", the interpreter complains:

Object doesn't support property or method 'addEventListener'

I'm writing a browser plugin that injects some script into the page, so I don't have any control over the page doctype declaration (or lack thereof). This is a scenario my plugin is quite likely to encounter at some point.

I note that on the MDN page for "addEventListener", a polyfill is provided with the caveat:

Also note that this IE8 polyfill ONLY works in standards mode: a doctype declaration is required

So that seems to be the same issue. I'm not sure how to work around this at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant