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

mailto hostnames #331

Closed
stevenvachon opened this issue Jul 5, 2017 · 6 comments
Closed

mailto hostnames #331

stevenvachon opened this issue Jul 5, 2017 · 6 comments

Comments

@stevenvachon
Copy link

[email protected] treats domain.com as a path and not a hostname. Why is this so?

@annevk
Copy link
Member

annevk commented Jul 6, 2017

Because it doesn't use the generic host syntax (start with //).

@stevenvachon
Copy link
Author

Because of this, invalid hostnames are parsed: user@:*&^:. I would think that the hostname part would be either an IPv4, IPv6 or IDNA.

@annevk
Copy link
Member

annevk commented Jul 6, 2017

For schemes that do not follow the generic syntax for hosts you'll have to do post-processing. We had this discussion before, no?

@annevk
Copy link
Member

annevk commented Jul 6, 2017

#280 was the previous discussion I was thinking of.

@stevenvachon
Copy link
Author

Post-processing seems annoying when this spec already explains how to handle hostnames.

@domenic
Copy link
Member

domenic commented Feb 7, 2018

Closing as per previous discussion mailto: parsing not special.

Recently a post-processing step was specified for how to extract useful information from data: URLs, in the Fetch Standard. It's done elsewhere because it's a higher-level concern; this standard is only about URL parsing, but it's the concern of software (e.g. browsers that fetch) to deal with whether the parsed URL is a useful format.

Hopefully that can serve as a model if you're interested in writing code or even a spec for how to parse mailto: URLs.

@domenic domenic closed this as completed Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants