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 (up to 8) has no document.documentElement #82

Closed
stephanschubert opened this issue May 15, 2010 · 3 comments
Closed

IE (up to 8) has no document.documentElement #82

stephanschubert opened this issue May 15, 2010 · 3 comments

Comments

@stephanschubert
Copy link

Easily fixable - just replace line 64

docElement = doc.documentElement,

with

docElement = doc.getElementsByTagName("html")[0],

/jzn

@paulirish
Copy link
Member

do you have a doctype on your page?

@stephanschubert
Copy link
Author

I had the HTML5 DTD while testing, but i after trying to trigger the bug again, i found that i messed up: IE complains about a missing comma on line 69

mod = 'modernizr'

which i fixed without thinking about it and thought the real error must be the documentElement call above. Sry, it works fine, just the comma is missing ;)

@paulirish
Copy link
Member

missing comma. closed by c32cecb

paulirish added a commit to KuraFire/Modernizr that referenced this issue Jun 28, 2012
patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
This issue was closed.
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

2 participants