Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

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

Closed
KeithPepin opened this issue Oct 16, 2012 · 0 comments
Closed

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

KeithPepin opened this issue Oct 16, 2012 · 0 comments

Comments

@KeithPepin
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants