We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 737b690 commit 1ee8e23Copy full SHA for 1ee8e23
ui/tabs.js
@@ -713,7 +713,7 @@ $.widget( "ui.tabs", {
713
_getIndex: function( index ) {
714
// meta-function to give users option to provide a href string instead of a numerical index.
715
if ( typeof index === "string" ) {
716
- index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
+ index = this.anchors.index( this.anchors.filter( "[href$='" + $.ui.escapeSelector( index ) + "']" ) );
717
}
718
719
return index;
0 commit comments