From 090ce4369d12751f2e55e62f6cc7f7fbc5dc6f2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 22 Mar 2012 13:17:17 -0400 Subject: [PATCH] Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector. (cherry picked from commit adbc2733bbd4d4c117dd2e0f31d5156e2913bfd1) --- ui/jquery.ui.tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 4c850b98e..5bb544889 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -427,7 +427,7 @@ $.widget( "ui.tabs", { // meta-function to give users option to provide a href string instead of a numerical index. // also sanitizes numerical indexes to valid values. if ( typeof index == "string" ) { - index = this.anchors.index( this.anchors.filter( "[href$=" + index + "]" ) ); + index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) ); } return index; -- 2.39.5