From: Scott González Date: Thu, 22 Mar 2012 17:17:17 +0000 (-0400) Subject: Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with... X-Git-Tag: 1.9m7~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=adbc2733bbd4d4c117dd2e0f31d5156e2913bfd1;p=jquery-ui.git Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector. --- diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index ba48c3770..c9300e69b 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -434,7 +434,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;