Closed kpreid closed 9 years ago
Comment #1 originally posted by felix8a on 2012-09-27T14:58:25.000Z:
<empty>
Comment #2 originally posted by felix8a on 2012-09-27T15:26:37.000Z:
workaround: put some html before the
what's happening is jquery.ui.position.js has code var body = document.getElementsByTagName( "body" )[ 0 ], testElement = document.createElement( body ? "div" : "body" );
when there's html before the script, getElementsByTagName('body') succeeds, and document.createElement('div') succeeds.
when there's no html before the script, getElementsByTagName('body") returns undefined, and jquery-ui tries to do document.createElement('body'), which we don't support, so testElement is null, which blows up.
Comment #3 originally posted by kpreid@google.com on 2012-09-27T15:32:10.000Z:
How is this a Caja bug? In-browser test case: data:text/html,%3Cscript%3Econsole.log(document.getElementsByTagName(%22body%22)%5B0%5D)%3C/script%3E logs undefined.
That said, we do have a bug in ES5 mode: IIRC, the
I tried moving including the entire library jquery/jquery-ui call script below as suggested, still not working?
Comment #11 originally posted by kpreid.switchb.org on 2012-09-27T19:08:51.000Z:
When I move the entire set of
EVERY CHILD DESERVES A CHANCE - Help us provide access to clean water supply by funding a borehole....read more
ADOPT A HOSPITAL OR CLINIC - Regular medical checkups lead to early disease detection and saves lives....read more
ADOPT A SCHOOL OR STUDENT - Help us rebuild the classrooms and libraries for the next generation....read more
TAKE A STAND AGAINST POVERTY AND POOR HYGIENE - Support neighborhood sanitation and hygiene....read more
YOUTH CENTER - Quisque sed orci ut lacus viverra interdum ornare sed est. Donec porta, erat eu pretium luctus, leo augue sodales....read more
Original issue 1549 created by cgoldfeder@google.com on 2012-09-27T14:54:30.000Z:
Minimal failure example:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
Runtime error:
Uncaught script error: 'Cannot read property 'style_v_' of null' in source: 'precajole:///jqueryui/1.8.18/jquery-ui.js' at line: 0 precajole:///jqueryui/1.8.18/jquery-ui.js:0: Cannot read property 'stylev' of null
User reporting: http://stackoverflow.com/questions/12615179/jquery-ui-library-not-loaded-served-by-google-cdn-from-the-google-site-insert-h