-
Notifications
You must be signed in to change notification settings - Fork 56
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
Uncaught TypeError: Cannot read property 'cssText' of null #3
Comments
Same here for node-webkit |
asxsadadsad |
pingpingpingping |
@bstoppel and @bugs181 the cssText null issue can be fixed by calling the script at the end of your document (not in the head). It needs to know what document.body is, and if you call the script in your head, document.body is not yet defined. |
We can use async to load the script |
Chrome 21 is throwing this error...
Uncaught TypeError: Cannot read property 'cssText' of null
And Firefox 15 is throwing this error...
NotSupportedError: Operation is not supported
var supportsCSSText = getComputedStyle(document.body).cssText !== "";
It looks like it is on line 5.
The text was updated successfully, but these errors were encountered: