mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Use $.ui.escapeSelector to avoid invalid selectors
This commit is contained in:
parent
737b690cde
commit
1ee8e230bd
@ -713,7 +713,7 @@ $.widget( "ui.tabs", {
|
||||
_getIndex: function( index ) {
|
||||
// meta-function to give users option to provide a href string instead of a numerical index.
|
||||
if ( typeof index === "string" ) {
|
||||
index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
|
||||
index = this.anchors.index( this.anchors.filter( "[href$='" + $.ui.escapeSelector( index ) + "']" ) );
|
||||
}
|
||||
|
||||
return index;
|
||||
|
Loading…
Reference in New Issue
Block a user