Re: [whatwg/url] File URL reparse bug with percent encoded windows drive letter (#559)

I think, if `|` is allowed in hosts, then it may be a bit strange why `c|` host is dropped or failed. So I prefer Chrome's behavior.
Percent encoding lets use `c|` as host (because percent encoded `c|` will not be treated as windows drive letter).
To not be too generic, I think `|` can be percent encoded if 3 succeeds.

Yet another example, which leads to the same bug:
```js
var u = new URL("file//h/")
u.hostname = "c|"
// u.href == "file://c|/"
```


-- 
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/559#issuecomment-717522051

Received on Tuesday, 27 October 2020 20:33:57 UTC