H5 Input type email – better don’t use it!

You can use type=”email” to validate the value of the input. I put together a simple test to find out which browsers accept which values for input type=”email”.

Here are the values I tested:
1) test
2) test@
3) test@test
4) test@127.0.0.1
5) test@test.test
6) test.O’test@test.com
7) test@testä.com
8) test@郵件.商務
9) test@मोहन.ईन्फो
10) testρ@εχαμπλε.ψομ
11) !#$%&’*+-/=?^_`.{|}~@test.com
12) user+mailbox/department=shipping@example.com

Expect from 1 and 2 (which are invalid email addresses in any case), most browsers (expect from Firefox and Chrome – see Note 1) also invalidates 7 (Umlaut), 8 (Chinese), 9 (Hindi) and 10 (Greek). This list is far from complete, there are lots of languages with different writing systems.

本文作者: GavinDong

版权属于: GavinDong博客

文章链接: https://gavindong.com/2515.html

如果使用过程中遇到问题,可 **点击此处** 交流沟通。

版权所有,转载时必须以链接形式注明作者和原始出处及本声明。

(0)

回复 ag

登录后才能评论

评论列表(1条)