Core: Fix focusable detection for image maps

The attribute selector requires quotes to be valid, but only new (unreleased)
Sizzle has this requirement.
This commit is contained in:
Scott González 2014-07-30 10:03:53 -04:00
parent 9895cb58b4
commit d6d15b4558

View File

@ -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 ) ?