Reputation: 22212
I noticed that the built-in browser validation for <input type="email" />
requires a format of xxx@xxx
. Only the @
character is required. There is no need to a dot, like [email protected]
.
It is the same with the popular jQuery.inputmask, the rule of email
alias does not require the dot, either.
I am just curious. Is it a standard way to ignore the dot in email validation now? I haven't seen any email address on the root level domain. What is the reason to ignore the dot?
Upvotes: 6
Views: 5906
Reputation: 62515
The RFC 822, chapter 6, gives the specification of an address in augmented Backus-Naur Form (BNF):
addr-spec = local-part "@" domain
local-part = word *("." word)
domain = sub-domain *("." sub-domain)
Using this specification a@b
is a valid address.
Upvotes: 12