mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Match on exact node name for :focusable
and :tabbable
Fixes #10747
Ref gh-1417
(cherry picked from commit c66842b45e
)
This commit is contained in:
parent
9db405798d
commit
f1345e3900
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user