Search code examples
javascripthtmlformsgoogle-chromeutf-8

HTML5 e-mail input doesn't validate utf-8 in Chrome 39


I have this element in my form:

<input type="email" placeholder="Enter your e-mail">

When I enter שלום@שלום.com, Google Chrome 39 says:

why?

But why? I thought new e-mail addresses can have UTF-8 characters so that shouldn't be the problem.


Solution

  • It seems there is a bug in Chrome or HTML specification. Check out these:

    Here is a workaround: use שלום@xn--9dbne9b.com instead of שלום@שלום.com