Skip to content

Commit

Permalink
Core: Fix focusable detection for image maps
Browse files Browse the repository at this point in the history
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 d6d15b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/core.js
Expand Up @@ -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 ) ?
Expand Down

0 comments on commit d6d15b4

Please sign in to comment.