mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
9895cb58b4
commit
d6d15b4558
@ -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 ) ?
|
||||
|
Loading…
Reference in New Issue
Block a user