Re: [url] Parsing an empty host (#79)

Host state already says:

> 1. If url is special and buffer is the empty string, return failure.
> 2. Let host be the result of host parsing buffer.
> 3. If host is failure, return failure.
> 4. Set url’s host to host,

Maybe a step could be added between 1 and 2: “If buffer is the empty string, let host be an empty domain” (an url’s host is not a string) and old 2 be made an “Otherwise”.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/79#issuecomment-173670414

Received on Thursday, 21 January 2016 18:45:02 UTC