(Solution found... more info provided for future searchers) After completely ignoring this over the weekend, the answer was blindingly obvious this morning. For legacy reasons, Prototype was being included... and it was being included before jquery. Hence, element.getElementsByClassName was some Prototype-bastardized version. Moving the jQuery load before Prototype fixed the problem.
For the jquery devs, is this something that should (can) be detected or worked-around? _jason On May 14, 9:57 am, Jason Persampieri <[email protected]> wrote: > (cross-posted on the users' group... hope this is the correct forum) > > My site works fine on Firefox and IE, but on Webkit-based browsers, > any call to jQuery(function() {}) results in this error on line 83 of > jquery-1.3.2.js -- > > TypeError: Result of expression 'jQuery( document ).ready' [undefined] > is not a function > > Basically, the jQuery.fn object is not getting extended with ready, > hover, etc.... I have isolated the actual crash to line 2238 of > jquery-1.3.2.js. > > if ( div.getElementsByClassName("e").length === 0 ) > return; > > I threw a try/catch block around the code and receive this exception - > > NOT_SUPPORTED_ERR: DOM Exception 9 > > I am currently running Safari Version 4 Public Beta (5528.16), but > apparently this bug is occurring in v3 as well (and of course, > Chrome). > > By ignoring exceptions generated from the above, and the equivalent > line 2 statements later, my page loads and everything executes > perfectly. > > _jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
