Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use v RegExp flag instead of u for <input pattern>
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.
- Loading branch information