diff options
author | Adam Foster <slimfoster@gmail.com> | 2015-01-09 16:53:30 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-01-09 16:56:20 -0500 |
commit | c66842b45e032ac09f73fcd767e78390d7191b6f (patch) | |
tree | 431d066d3920701739f94c400cecf7b2a093ce31 /ui/core.js | |
parent | 4de983c6d5eacbdc668c0b7280d9818dd6281a53 (diff) | |
download | jquery-ui-c66842b45e032ac09f73fcd767e78390d7191b6f.tar.gz jquery-ui-c66842b45e032ac09f73fcd767e78390d7191b6f.zip |
Core: Match on exact node name for `:focusable` and `:tabbable`
Fixes #10747
Ref gh-1417
Diffstat (limited to 'ui/core.js')
-rw-r--r-- | ui/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/core.js b/ui/core.js index 28e9841dd..224d12b15 100644 --- a/ui/core.js +++ b/ui/core.js @@ -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 : |