From 1ee8e230bdc6036bec1e28573c67e2e9ca67252c Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Mon, 27 Apr 2015 02:34:56 -0400 Subject: Tabs: Use $.ui.escapeSelector to avoid invalid selectors --- ui/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/tabs.js') 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; -- cgit v1.2.3