Permalink
Browse files

Core: Match on exact node name for `:focusable` and `:tabbable`

Fixes #10747
Ref gh-1417
  • Loading branch information...
1 parent 4de983c commit c66842b45e032ac09f73fcd767e78390d7191b6f @SlimFoster SlimFoster committed with scottgonzalez Jan 9, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/core.js
View
@@ -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 :

0 comments on commit c66842b

Please sign in to comment.