We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:focusable
:tabbable
1 parent 4de983c commit c66842bCopy full SHA for c66842b
1 file changed
ui/core.js
@@ -103,7 +103,7 @@ function focusable( element, isTabIndexNotNaN ) {
103
img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
104
return !!img && visible( img );
105
}
106
- return ( /input|select|textarea|button|object/.test( nodeName ) ?
+ return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
107
!element.disabled :
108
"a" === nodeName ?
109
element.href || isTabIndexNotNaN :
0 commit comments