Skip to content

Commit f1345e3

Browse files
SlimFosterscottgonzalez
authored andcommitted
Core: Match on exact node name for :focusable and :tabbable
Fixes #10747 Ref gh-1417 (cherry picked from commit c66842b)
1 parent 9db4057 commit f1345e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function focusable( element, isTabIndexNotNaN ) {
9797
img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
9898
return !!img && visible( img );
9999
}
100-
return ( /input|select|textarea|button|object/.test( nodeName ) ?
100+
return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
101101
!element.disabled :
102102
"a" === nodeName ?
103103
element.href || isTabIndexNotNaN :

0 commit comments

Comments
 (0)