mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Core: Match on exact node name for :focusable and :tabbable
Fixes #10747 Ref gh-1417
This commit is contained in:
committed by
Scott González
parent
4de983c6d5
commit
c66842b45e
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user