New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

KeithPepin opened this Issue Oct 16, 2012 · 0 comments


None yet
2 participants

KeithPepin commented Oct 16, 2012

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment