Re: [whatwg/url] Are drive letters always invalid? (#612)

You could work around it by percent-encoding the `:` or `|` character; `c%3A` is not considered a drive letter.

When creating a file URL from a file path, you already need to encode characters which the URL parser would otherwise interpret (e.g. `?` and `#` may be valid characters on the filesystem), so this is just another one.

-- 
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/612#issuecomment-862513096

Received on Wednesday, 16 June 2021 16:13:35 UTC