Permalink
Browse files

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

Fixes #10747
Ref gh-1417
(cherry picked from commit c66842b)
  • Loading branch information...
SlimFoster authored and scottgonzalez committed Jan 9, 2015
1 parent 9db4057 commit f1345e3900e4ac7e5c496b82c04731ce7535bdf7
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/core.js
View
@@ -97,7 +97,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 f1345e3

Please sign in to comment.