diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-04-27 02:34:56 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-05 21:43:57 -0400 |
commit | 1ee8e230bdc6036bec1e28573c67e2e9ca67252c (patch) | |
tree | 788d7d2ad0fba438a12ae8ba82e25e2138cceed4 /ui/tabs.js | |
parent | 737b690cde0ee5b04679a4433bc2da41944d1edf (diff) | |
download | jquery-ui-1ee8e230bdc6036bec1e28573c67e2e9ca67252c.tar.gz jquery-ui-1ee8e230bdc6036bec1e28573c67e2e9ca67252c.zip |
Tabs: Use $.ui.escapeSelector to avoid invalid selectors
Diffstat (limited to 'ui/tabs.js')
-rw-r--r-- | ui/tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tabs.js b/ui/tabs.js index 75723239c..3bd7b9246 100644 --- a/ui/tabs.js +++ b/ui/tabs.js @@ -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; |