Re: [w3ctag/design-reviews] TAG review of the proposal to use the RegExp `v` flag instead of `u` for the HTML `pattern` attribute (Issue #832)

> Hey, could you folks please add an explainer that follows the guidelines in https://tag.w3.org/explainers/ ? If anything, I found [this](https://github.com/whatwg/html/pull/7908) more informative than the explainer actually linked, so please make sure to include this information.

Updated. PTAL

> From the same link:
> 
> > * **[BREAKING CHANGE]** Some previously valid patterns are now errors, specifically those with a character class including either an unescaped [special character](https://arai-a.github.io/ecma262-compare/snapshot.html?pr=2418#prod-ClassSetSyntaxCharacter) `(` `)` `[` `]` `{` `}` `/` `-` `\` `|` or [a double punctuator](https://arai-a.github.io/ecma262-compare/snapshot.html?pr=2418#prod-ClassSetReservedDoublePunctuator):
> 
> Do you have any sense of how common these patterns are in the wild?

So far the only examples we’ve seen are cases where an unescaped `-` occurs within a character class. Interestingly, all the cases are the “username” field for a login form, where the username is really an email address, yet instead of using `type=email` the authors chose to use a `pattern`. See the link under “Major unresolved issues with or opposition to this specification” for some more details on each case.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/832#issuecomment-1497778703
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/832/1497778703@github.com>

Received on Wednesday, 5 April 2023 16:23:50 UTC