Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Title attribute of a split button pulls in extra spaces #5182
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