-
Notifications
You must be signed in to change notification settings - Fork 295
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
utils/has-css3.js throwing errors in Safari on iOS7 #775
Comments
So Turns out, the test case will work if the feature test element is appended to the html element, which always exists. |
Off the cuff, I could fathom 2 ways to fix this:
|
I considered both of those changes, and I was able to shuffle around that particular I can submit a PR for either approach, let me know. |
if dgrid/List -> dgrid/TouchScroll -> dgrid/utils/has-css3 is loaded before safari had generated a body node (it's hit or miss), then has-css3 test will throw an exception killing page load:
TypeError: 'null' is not an object (evaluating 'document.body.appendChild')
This is coming from line 61 of has-css3.js
In my app, I have dojo.js script tag and require(['myApp/MyGrid']); both located in the head of the document with sync mode on, so I'm GUESSING that safari is doing some sort of incremental parsing of the incoming html, and if the JS is executed before the <body> tag is seen/rendered, the error is thrown.
The text was updated successfully, but these errors were encountered: