diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 0c72e9c4bb..89f6626f8f 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -344,7 +344,7 @@ $.widget( "ui.button", { buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" ); if ( !this.hasTitle ) { - buttonElement.attr( "title", buttonText ); + buttonElement.attr( "title", $.trim( buttonText ) ); } } } else {