Skip to content

Commit

Permalink
Core: Match on exact node name for :focusable and :tabbable
Browse files Browse the repository at this point in the history
Fixes #10747
Ref gh-1417
  • Loading branch information
SlimFoster authored and scottgonzalez committed Jan 9, 2015
1 parent 4de983c commit c66842b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function focusable( element, isTabIndexNotNaN ) {
img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
return !!img && visible( img );
}
return ( /input|select|textarea|button|object/.test( nodeName ) ?
return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
!element.disabled :
"a" === nodeName ?
element.href || isTabIndexNotNaN :
Expand Down

0 comments on commit c66842b

Please sign in to comment.