aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-07-30 10:03:53 -0400
committerScott González <scott.gonzalez@gmail.com>2014-07-30 10:03:53 -0400
commitd6d15b455839aa3a75cbcc5df2d7fa41299b59a9 (patch)
tree1e78aa002c5a7dbbe3bf0c45bbdf99d04c786cc4
parent9895cb58b4416ac961a5b69eb7825207a0012707 (diff)
downloadjquery-ui-d6d15b455839aa3a75cbcc5df2d7fa41299b59a9.tar.gz
jquery-ui-d6d15b455839aa3a75cbcc5df2d7fa41299b59a9.zip
Core: Fix focusable detection for image maps
The attribute selector requires quotes to be valid, but only new (unreleased) Sizzle has this requirement.
-rw-r--r--ui/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/core.js b/ui/core.js
index 35930866b..aa1ee0f3d 100644
--- a/ui/core.js
+++ b/ui/core.js
@@ -93,7 +93,7 @@ function focusable( element, isTabIndexNotNaN ) {
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
return false;
}
- img = $( "img[usemap=#" + mapName + "]" )[0];
+ img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
return !!img && visible( img );
}
return ( /input|select|textarea|button|object/.test( nodeName ) ?