Re: [whatwg/url] It's not immediately clear that "URL syntax" and "URL parser" conflict (#118)

The syntax for URIs is such that the authority component (user:password@host:port) is always separated from the scheme by two slashes, except for some schemes that do not require them. The path may only begin with // if the authority component is there, and in that case it must begin with one single slash. So there is no possible case where there would be more than three slashes after the colon following the URI scheme.[(1)] HTTP in particular requires the two slashes between the URI scheme and the authority component, so there should always be exactly two slashes between the `http` URI scheme and the URI component.[(2)]

[(1)]: https://tools.ietf.org/html/rfc3986#section-3.2
[(2)]: https://tools.ietf.org/html/rfc7230#section-2.7.1

---
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/118#issuecomment-218343043

Received on Wednesday, 11 May 2016 04:26:51 UTC