Re: [whatwg/url] Change host parser for non-special schemes (#148)

In these cases, what we humans considered the host was actually the path.
<script>
try {
 var url = new URL("notspecial://H%4fSt/path");
 alert('host: "' + url.host + '", pathname: "' + url.pathname + '", toString: "' + url.toString() + '"');
 // Firefox and Chrome have an empty host and the pathname is "//H%4fSt/path"
} catch (e) { alert("threw"); }
<script>
When trying the same with "notspecial://" Safari agrees with Chrome and Firefox.  I think these are similar cases.

-- 
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/148#issuecomment-251522574

Received on Tuesday, 4 October 2016 21:43:34 UTC