Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email validation #26

Open
dexterns88 opened this issue Aug 28, 2020 · 1 comment
Open

email validation #26

dexterns88 opened this issue Aug 28, 2020 · 1 comment

Comments

@dexterns88
Copy link

dexterns88 commented Aug 28, 2020

What is the current behavior?

Valid input when enter: abc.def@mail

What is the expected behavior?

Show error on: abc.def@mail - invalid email

Other information

you can check issue here https://codesandbox.io/s/14r018yjp4
with type mail like abc.def@mail into email field and no error

@rishabh-ink
Copy link

rishabh-ink commented Oct 26, 2020

I don’t think this is an issue because abc.def@mail matches the pattern of a valid email address. As another example, root@localhost is a perfectly valid email address.

For more info, see Why does HTML5 form-validation allow emails without a dot?, where one of the answers mentions:

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.

Or How does HTML5 input type email works without top level domain name, where one of the answers mentions:

Because a@b is a valid email address (eg localhost is a valid domain). See http://en.wikipedia.org/wiki/Email_address#Examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants