Skip to content
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

Support data for Unicode flag on HTML pattern attribute #4209

Open
valtlai opened this issue Apr 19, 2018 · 1 comment
Open

Support data for Unicode flag on HTML pattern attribute #4209

valtlai opened this issue Apr 19, 2018 · 1 comment

Comments

@valtlai
Copy link
Contributor

valtlai commented Apr 19, 2018

Browsers should use the u flag when matching the input value against HTML pattern attribute. (Spec.)

Initial implementations didn’t use the flag, but now at least Chrome, Firefox and Safari Technology Review 53 do.

A test case:

<form>
   <input value="a𝌆b" pattern="a.b" required/>
   <button>Test</button>
</form>

https://codepen.io/valtlai/pen/bMNgaR

Maybe an additional note for https://caniuse.com/#feat=input-pattern would suffice?

@valtlai valtlai changed the title Support for Unicode flag on HTML pattern attribute Support data for Unicode flag on HTML pattern attribute Apr 19, 2018
@brandung-sjorek
Copy link

brandung-sjorek commented Oct 25, 2022

@Fyrd @valtlai Is there any progress here, as this issue is quite old now? I really like to know how far the adoption of unicode-aware pattern-validation in input-fields has evolved. At least under https://caniuse.com/#feat=input-pattern there is no hint …

Any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants