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

IE fix: replace reference to js/HTMLDocument with js/Document #28

Merged

Conversation

starvinraven
Copy link

So, I noticed Dommy breaks in Internet Explorer (versions > 8, I think). This is due to references to HTMLDocument, which results in the following error:

SCRIPT5009: 'HTMLDocument' is undefined

I tried a quick fix and replaced HTMLDocument with Document, which seemed to do the trick. To be honest, however, this might break any number of other things...

This seems to coincide with the pull request by @hsalokor, but just referencing another nonexistant global object. I suppose the "correct" way to fix this would be to check for existence, e.g. if(typeof HTMLDocument !== 'undefined') { extendPrototype() }. Anyway, as is, it's a pretty nasty bug.

@hsalokor
Copy link
Contributor

Any news on this one? I encountered this same issue with IE9, and am currently using custom dommy version w/ this patch in order to avoid it.

@cpetzold
Copy link
Contributor

This is fine, as Document is a superclass of HTMLDocument, and still implements all of the methods on document that we care about (querySelector[All], getElementBy{Id | TagName | ClassName}, addEventListener, etc).

Thanks for the fix!

cpetzold added a commit that referenced this pull request Apr 26, 2013
…ment

IE fix: replace reference to js/HTMLDocument with js/Document
@cpetzold cpetzold merged commit 86fdef2 into plumatic:master Apr 26, 2013
djpowell added a commit to djpowell/dommy that referenced this pull request Nov 1, 2013
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

Successfully merging this pull request may close these issues.

None yet

3 participants