diff options
author | Scott González <scott.gonzalez@gmail.com> | 2014-07-30 10:03:53 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-07-30 10:03:53 -0400 |
commit | d6d15b455839aa3a75cbcc5df2d7fa41299b59a9 (patch) | |
tree | 1e78aa002c5a7dbbe3bf0c45bbdf99d04c786cc4 | |
parent | 9895cb58b4416ac961a5b69eb7825207a0012707 (diff) | |
download | jquery-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.js | 2 |
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 ) ? |