Skip to content

Commit 1ee8e23

Browse files
committed
Tabs: Use $.ui.escapeSelector to avoid invalid selectors
1 parent 737b690 commit 1ee8e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/tabs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ $.widget( "ui.tabs", {
713713
_getIndex: function( index ) {
714714
// meta-function to give users option to provide a href string instead of a numerical index.
715715
if ( typeof index === "string" ) {
716-
index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
716+
index = this.anchors.index( this.anchors.filter( "[href$='" + $.ui.escapeSelector( index ) + "']" ) );
717717
}
718718

719719
return index;

0 commit comments

Comments
 (0)