The input type = email tag in html5 works even if the top level domain name is not present
<form action = "yourPage" method = "get">
<input type = 'email' name ="emailName" >
<input type = 'submit'>
</form>
for eg: if we type
foo@bar
instead of
[email protected]
The form will be submitted. Can anyone explain why it behaves like this.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With