Ticket #6015: tabindex_bug.patch
File tabindex_bug.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/core/dom/element.js
527 527 { 528 528 var tabIndex = this.$.tabIndex; 529 529 530 // WebKit (as of r63640) returns 0 for tabIndex of 531 // fieldset and legend elements, despite these elements not 532 // being focusable. As with the undefined case, get it from 533 // the attribute instead. 534 // https://bugs.webkit.org/show_bug.cgi?id=42765 535 530 536 // Safari returns "undefined" for elements that should not 531 537 // have tabindex (like a div). So, we must try to get it 532 538 // from the attribute. 533 539 // https://bugs.webkit.org/show_bug.cgi?id=20596 534 if ( tabIndex == undefined ) 540 if ( (tabIndex == undefined) || 541 (this.$.nodeName === 'FIELDSET') || 542 (this.$.nodeName === 'LEGEND') ) 535 543 { 536 544 tabIndex = parseInt( this.getAttribute( 'tabindex' ), 10 ); 537 545