Skip to content
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

Trim accept tokens as in spec. #1151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sandinmyjoints
Copy link

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
  • Tests
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 8, 2023

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 8897d84:

Sandbox Source
userEvent-dom Configuration
userEvent-react Configuration

@sandinmyjoints
Copy link
Author

Ping for review.

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

Successfully merging this pull request may close these issues.

None yet

1 participant