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 · 0 comments
Open

Support data for Unicode flag on HTML pattern attribute #4209

valtlai opened this issue Apr 19, 2018 · 0 comments

Comments

@valtlai
Copy link
Contributor

@valtlai 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
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

2 participants