Index: trunk/phase3/resources/jquery/jquery.tabIndex.js |
— | — | @@ -13,7 +13,10 @@ |
14 | 14 | var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 ); |
15 | 15 | if ( i === 0 ) { |
16 | 16 | minTabIndex = tabIndex; |
17 | | - } else if ( tabIndex < minTabIndex ) { |
| 17 | + // In IE6/IE7 the above jQuery selector returns all elements, |
| 18 | + // becuase it has a default value for tabIndex in IE6/IE7 of 0 |
| 19 | + // (rather than null/undefined). Therefore check "> 0" as well |
| 20 | + } else if ( tabIndex > 0 && tabIndex < minTabIndex ) { |
18 | 21 | minTabIndex = tabIndex; |
19 | 22 | } |
20 | 23 | } ); |