user-event icon indicating copy to clipboard operation
user-event copied to clipboard

Trim accept tokens as in spec.

Open sandinmyjoints opened this issue 2 years ago • 2 comments

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

sandinmyjoints avatar Aug 08 '23 15:08 sandinmyjoints

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

codesandbox-ci[bot] avatar Aug 08 '23 15:08 codesandbox-ci[bot]

Ping for review.

sandinmyjoints avatar Sep 12 '23 16:09 sandinmyjoints

resolved by #1064

ph-fritsche avatar Jan 29 '25 13:01 ph-fritsche