Re: [whatwg/url] Should file URLs have opaque hostnames? (#599)

@alwinb I don't think that is true - whilst it does say "Let host be the result of host parsing buffer with url is not special.", that is the same formulation used in the regular host/hostname state. "url is not special" is a link, or a computed property of `url`; it does not mean that you should parse the hostname _as though_ the URL were not special. For further confirmation, see the [scheme/host matrix](https://url.spec.whatwg.org/#url-representation).

When I first tried to implement the spec, it took me far longer to parse that line than I'd like to admit. It's very awkwardly worded.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/599#issuecomment-883858900

Received on Wednesday, 21 July 2021 03:31:25 UTC