Permalink
Browse files

Button: added quotes in attribute selector. Fixed #7534 - ui.button: …

…Button label selector omits quotes / fails for ids with ":"
  • Loading branch information...
jabouillei committed Jul 6, 2011
1 parent 96de2aa commit 5bed24df73920df74c7ed47938d49bb680948699
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.button.js
View
@@ -229,7 +229,7 @@ $.widget( "ui.button", {
// we don't search against the document in case the element
// is disconnected from the DOM
var ancestor = this.element.parents().last(),
labelSelector = "label[for=" + this.element.attr("id") + "]";
labelSelector = "label[for=\"" + this.element.attr("id") + "\"]";
this.buttonElement = ancestor.find( labelSelector );
if ( !this.buttonElement.length ) {
ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();

0 comments on commit 5bed24d

Please sign in to comment.