Permalink
Browse files

Fix for issue: #5183 - "Title attribute of a split button pulls in ex…

…tra spaces"

Cause:  entire text node is copied for the title attribute, including any leading or trailing spaces.
Solution:  Apply $.trim() to the text node value before assigning to the title attribute.
Files Impacted:
  listview.js
  • Loading branch information...
Keith Pepin
Keith Pepin committed Oct 16, 2012
1 parent 4d9575b commit b7da392ae15b3562579d92365b8d18cf27d53fd7
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/listview.js
View
@@ -231,7 +231,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
linkIcon = last.jqmData( "icon" );
last.appendTo( item )
.attr( "title", last.getEncodedText() )
.attr( "title", $.trim(last.getEncodedText()) )
.addClass( "ui-li-link-alt" )
.empty()
.buttonMarkup({

1 comment on commit b7da392

@KeithPepin

This comment has been minimized.

Show comment
Hide comment
@KeithPepin

KeithPepin Oct 16, 2012

Contributor

Had a typo when creating the fork and this Fix commit. Correct Issue number is #5182. Sorry for any confusion guys.

Contributor

KeithPepin commented on b7da392 Oct 16, 2012

Had a typo when creating the fork and this Fix commit. Correct Issue number is #5182. Sorry for any confusion guys.

Please sign in to comment.