From d6d15b455839aa3a75cbcc5df2d7fa41299b59a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 30 Jul 2014 10:03:53 -0400 Subject: [PATCH] Core: Fix focusable detection for image maps The attribute selector requires quotes to be valid, but only new (unreleased) Sizzle has this requirement. --- ui/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ? -- 2.39.5