Skip to content

Commit

Permalink
Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tab…
Browse files Browse the repository at this point in the history
…s: Error with href selector.
  • Loading branch information
scottgonzalez committed Mar 22, 2012
1 parent 9bb9141 commit adbc273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -434,7 +434,7 @@ $.widget( "ui.tabs", {
// meta-function to give users option to provide a href string instead of a numerical index. // meta-function to give users option to provide a href string instead of a numerical index.
// also sanitizes numerical indexes to valid values. // also sanitizes numerical indexes to valid values.
if ( typeof index == "string" ) { if ( typeof index == "string" ) {
index = this.anchors.index( this.anchors.filter( "[href$=" + index + "]" ) ); index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
} }


return index; return index;
Expand Down

0 comments on commit adbc273

Please sign in to comment.