IE7 is failing when that code block is not commented out.  Whether or
not IE is trying to execute the code (and the browser detection
failing) i'm not quite sure about... I haven't had the time to look
into it any further, just flagging it as a potential issue.


On Nov 4, 10:25 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> This is a bit confusing.  Is IE7 running that block of code, even though its
> earmarked for Opera?
>
> Like is the browser detection is failing?
>
> Or is IE7 failing when that code is there even though it never runs it?
> Meaning, the bug went away when you commented out code that is never
> reached?
>
> JK
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Gregoriusness
> Sent: Monday, November 03, 2008 2:31 PM
> To: jQuery (English)
> Subject: [jQuery] Bug in IE7 - Complains about Opera bindReady code in
> jquery
>
> hey all,
>
> I initially posted this on the developer forum, but not sure if that
> was the best place for it so reposting here.
>
> I've got an issue with jQuery in IE7.  It is throwing the following
> error:
>
> Line: 2355
> Error: Object doesn't support this property or method
>
> Looking at jquery source (v1.2.6), on that line is the Opera condition
> for the bindReady() event, ie:
>
>         if ( jQuery.browser.opera )
>                 document.addEventListener( "DOMContentLoaded",
> function () {
>                         if (jQuery.isReady) return;
>                         for (var i = 0; i <
> document.styleSheets.length; i++)
>                                 if (document.styleSheets[i].disabled)
> {
>                                         setTimeout( arguments.callee,
> 0 );
>                                         return;
>                                 }
>                         // and execute any waiting functions
>                         jQuery.ready();
>                 }, false);
>
> If i comment out this block of code, all works fine (even in opera).
>
> is this a known bug?  is there a workaround (besides what i've done)??
>
> thanks heaps
> greg

Reply via email to