[Bug 15489] forms: <input type=email> validation needs to be updated for EAI

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15489

Mathias Bynens <mathias@qiwi.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(mathias@qiwi.be)  |

--- Comment #36 from Mathias Bynens <mathias@qiwi.be> ---
(In reply to Anne from comment #35)
> Mathias, any chance you could give us an updated regular expression?

A generalized regex seems tricky to do, since each TLD can theoretically have
its own set of allowed symbols. See
https://www.verisign.com/en_US/channel-resources/domain-registry-products/idn/idn-policy/registration-rules/index.xhtml
for more info.

The default list of allowed IDN symbols as used by Verisign (i.e. applies to
.com and then some) can be found here:
https://www.verisign.com/assets/allowedcode/idn-allowed-code-points.html

Here’s a regex based on that:
https://github.com/mathiasbynens/idn-allowed-code-points-regex/blob/master/index.js

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 29 March 2016 12:25:39 UTC