Skip to content

Conversation

@mathiasbynens
Copy link
Contributor

@mathiasbynens mathiasbynens commented Jan 31, 2023

Previously, this test wasn’t testing anything useful — it would “pass” just the same for any invalid or unsupported attribute (e.g. pattern-lolwat-idontexist) in any browser.

This patch fixes that by testing .pattern instead of .getAttribute('pattern'), and adds some more <input pattern> tests.

@foolip foolip merged commit 16332f7 into web-platform-tests:master Jan 31, 2023
@mathiasbynens mathiasbynens deleted the fix-pattern-test branch January 31, 2023 12:03
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants