http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89614

Revision: 89614
Author:   krinkle
Date:     2011-06-06 21:51:18 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Alright, IE7 is fixed by r89613. IE6 stays problematic, for some reason it 
contains non-nodes as well (presumably whitespace/textnodes). This oughta fix 
it forever (poke r89605)

Modified Paths:
--------------
    trunk/phase3/resources/jquery/jquery.tabIndex.js

Modified: trunk/phase3/resources/jquery/jquery.tabIndex.js
===================================================================
--- trunk/phase3/resources/jquery/jquery.tabIndex.js    2011-06-06 21:43:03 UTC 
(rev 89613)
+++ trunk/phase3/resources/jquery/jquery.tabIndex.js    2011-06-06 21:51:18 UTC 
(rev 89614)
@@ -15,7 +15,7 @@
                // becuase it has a default value for tabIndex in IE6/IE7 of 0
                // (rather than null/undefined). Therefore check "> 0" as well
                if ( tabIndex > 0 ) {
-                       if ( i === 0 ) {
+                       if ( minTabIndex === null ) {
                                minTabIndex = tabIndex;
                        } else if ( tabIndex < minTabIndex ) {
                                minTabIndex = tabIndex;
@@ -34,7 +34,7 @@
        var maxTabIndex = null;
        $(this).find( '[tabindex]' ).each( function( i ) {
                var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 );
-               if ( i === 0 ) {
+               if ( maxTabIndex === null ) {
                        maxTabIndex = tabIndex;
                } else if ( tabIndex > maxTabIndex ) {
                        maxTabIndex = tabIndex;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to