How does HTML5 input type email works without top level domain name

前端 未结 1 818
闹比i
闹比i 2020-12-06 17:17

The input type = email tag in html5 works even if the top level domain name is not present

相关标签:
1条回答
  • 2020-12-06 17:39

    Because bar is a valid hostname, which makes foo@bar a valid email address.

    Chrome is not going to check for you whether the address or host are actually in use, only whether the semantics are correct.

    See http://en.wikipedia.org/wiki/Email_address#Domain_part for examples of valid email addresses.

    0 讨论(0)
提交回复
热议问题