Trim accept tokens as in spec.
What:
Trim whitespace around tokens from the input element accept attribute.
Why:
The spec says accept is a set of comma-separated tokens, and to obtain the list of tokens from the attribute, the user agent must split the attribute value on commas. The algorithm for splitting says to "Strip leading and trailing ASCII whitespace from token." as step 2.
How:
Call String.trim on each token.
Checklist:
- [na] Documentation
- [x] Tests
- [x] Ready to be merged
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 8897d84b8e9c02d556c65691f38da0dd1a6d7262:
| Sandbox | Source |
|---|---|
| userEvent-dom | Configuration |
| userEvent-react | Configuration |
Ping for review.
resolved by #1064