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
Cannot set `val()` for select options containing tabs (`\t`) #2978
I have a select element that contains options whose values contain tab characters. My original use case was a trailing tab (
A few interesting observations:
JSFiddle: https://jsfiddle.net/onnucjx7/2/ You'll see in the console what I expect the behavior to be compared to what the behavior actually is.
I searched for "tab" and "whitespace" and didn't see anything directly relevant; I did find this issue #1902 but it only mentions IE10 and I am seeing the unexpected behavior in Firefox 44 and Chrome 48.
I think your fiddle is broken with respect to my comment (what's with the
Fixing this should consist of updating the