- From: Mert Can Altin <notifications@github.com>
- Date: Sun, 15 Jun 2025 09:01:45 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 15 June 2025 16:01:49 UTC
mertcanaltin left a comment (whatwg/url#873) > I don't think we want to reject single-letter-scheme URLs. As discussed in [#271](https://github.com/whatwg/url/issues/271) we might be able to do something special if the scheme is followed by a backslash, though this issue seems to ask for the opposite of what that issue is asking for. @annevk You're right - I'm actually proposing the same solution as #271, just a different approach - **#271**: `D:\foo` → auto-convert to `file:///D:/foo` - **My proposal**: `C:\foo` → reject in `canParse()`, force explicit `file:///C:/foo` Both prevent `C:\foo` being parsed as `scheme:C, path:\foo`. Your Dec 2024 comment about treating `[a-zA-Z]:\` specially is exactly what I'm suggesting. Would rejecting `[a-zA-Z]:\` in `canParse()` work as a first step toward the #271 solution? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/873#issuecomment-2974146359 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/issues/873/2974146359@github.com>
Received on Sunday, 15 June 2025 16:01:49 UTC