- From: Rimas Misevičius <notifications@github.com>
- Date: Tue, 27 Oct 2020 13:33:45 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 October 2020 20:33:57 UTC
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