Title attribute of a split button pulls in extra spaces #5182

KeithPepin opened this Issue Oct 16, 2012 · 0 comments


None yet

2 participants


If the text node of a split button has a large number of space characters at the start or end of the text node, these spaces are placed into the title attribute as is. This causes the title to be displayed with odd looking padding. A simple fix would be to .trim() the value of leading or trailing spaces before setting the value of the title attribute.

Code sample available to see this at: http://jsbin.com/ucodij/3/edit

@scottjehl scottjehl closed this in 2700da8 Oct 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment