aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Foster <slimfoster@gmail.com>2015-01-09 16:53:30 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-09 11:58:03 -0500
commitf1345e3900e4ac7e5c496b82c04731ce7535bdf7 (patch)
tree648d704c6790cfa35c5f576136bc7e04d986501c
parent9db405798dd5fc8ee603991226916351ec2a0dda (diff)
downloadjquery-ui-f1345e3900e4ac7e5c496b82c04731ce7535bdf7.tar.gz
jquery-ui-f1345e3900e4ac7e5c496b82c04731ce7535bdf7.zip
Core: Match on exact node name for `:focusable` and `:tabbable`
Fixes #10747 Ref gh-1417 (cherry picked from commit c66842b45e032ac09f73fcd767e78390d7191b6f)
-rw-r--r--ui/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/core.js b/ui/core.js
index ee01d5988..0b2e03950 100644
--- a/ui/core.js
+++ b/ui/core.js
@@ -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 :