Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

The "valid e-mail address" definition doesn't accept IPv6 emails #1638

Closed
mgol opened this issue Oct 11, 2018 · 3 comments
Closed

The "valid e-mail address" definition doesn't accept IPv6 emails #1638

mgol opened this issue Oct 11, 2018 · 3 comments

Comments

@mgol
Copy link

mgol commented Oct 11, 2018

The "valid e-mail address" definition in the spec:
https://html.spec.whatwg.org/#valid-e-mail-address
doesn't accept emails with an IPv6 host like xyz@[IPv6:2001::1]. E-mails like that are defined in "RFC 5321 (SMTP)" in section 4.1.3:
https://tools.ietf.org/html/rfc5321#section-4.1.3
We've got an issue in AngularJS about not supporting such e-mails:
angular/angular.js#16599
and I noticed the HTML standard doesn't do that either. Is it a conscious decision? If yes, what are the reasons?

I searched the issues & PRs but the word "IPv6" doesn't return any results.

@chaals
Copy link
Collaborator

chaals commented Oct 11, 2018

The HTML specification changed in January to reference RFC 6531 which means more or less anything with an '@' sign in the middle should be valid. Your reference is to the WHATWG spec and I don't know why they seem uninterested in supporting modern email addresses.

If I misunderstood the RFC and we still don't support IPv6 addresses that was an oversight and we should fix it. Otherwise, I think this issue can be closed...

@mgol
Copy link
Author

mgol commented Oct 11, 2018

Forgive me, I filed it under a wrong repo! I’ll re-check with WHATWG...

Thank you for your time.

@mgol mgol closed this as completed Oct 11, 2018
@mgol
Copy link
Author

mgol commented Oct 12, 2018

Submitted to WHATWG HTML as whatwg/html#4089.

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

No branches or pull requests

2 participants