-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add tests for <input pattern> enabling the RegExp v
flag
#38547
Add tests for <input pattern> enabling the RegExp v
flag
#38547
Conversation
Could you take a look at https://github.com/web-platform-tests/wpt/blob/master/html/semantics/forms/constraints/form-validation-validity-patternMismatch.html? It looks like that needs changes as well. |
2bdb281
to
7640b5b
Compare
Done. For now, I’ve changed these tests so that they pass with either |
I think we should make them fail if you use |
7640b5b
to
67557e0
Compare
I figured the other tests (in |
html/semantics/forms/constraints/form-validation-validity-patternMismatch.html
Show resolved
Hide resolved
v
flagv
flag
67557e0
to
cec34da
Compare
cec34da
to
3ee816e
Compare
This makes the pattern attribute more powerful, enabling the use of RegExp set notation syntax and properties of strings in its values. Differences with the previous u flag-based behavior: - [FEATURE] Previously invalid patterns now become valid, e.g.: pattern="[\p{ASCII_Hex_Digit}--[Ff]]" pattern="\p{RGI_Emoji}" pattern="[_\q{a|bc|def}]" - [BREAKING CHANGE] Some previously valid patterns are now errors, specifically those with a character class including either an unescaped special character ( ) [ ] { } / - \ | or a double punctuator. - [STATUS QUO] Other previously valid patterns still behave the same. (Other than the above-mentioned features, the v flags only differs in behavior from the u flag w.r.t. case-insensitive matching, but the pattern attribute uses case-sensitive matching.) Tests: web-platform-tests/wpt#38547. Fixes #7908.
Proposal: whatwg/html#7908
Re-opening this as #38325 accidentally got merged.