diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 7774ab937..31074e2e1 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -319,7 +319,7 @@ $.widget( "ui.button", { return; } var buttonElement = this.buttonElement.removeClass( typeClasses ), - buttonText = $( "" ) + buttonText = $( "", this.element[0].ownerDocument ) .addClass( "ui-button-text" ) .html( this.options.label ) .appendTo( buttonElement.empty() )