Permalink
Browse files

Core: Fix focusable detection for image maps

The attribute selector requires quotes to be valid, but only new (unreleased)
Sizzle has this requirement.
  • Loading branch information...
scottgonzalez committed Jul 30, 2014
1 parent 9895cb5 commit d6d15b455839aa3a75cbcc5df2d7fa41299b59a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/core.js
View
@@ -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 ) ?

0 comments on commit d6d15b4

Please sign in to comment.