Re: [whatwg/url] Windows file paths in URL parsing (Issue #873)

mertcanaltin left a comment (whatwg/url#873)

@annevk I understand now. Based on your December 2024 comment in #271 and our discussion here, I'll implement the approach where:

 `[a-zA-Z]:\` → convert to `file:///[drive]/[path]` (backslash is invalid anyway)
 `[a-zA-Z]:/` → preserve current behavior (too risky to change)

This solves both #271 and #873 together as you mentioned.

I'll work on:
1. **Specification changes** for the URL parser algorithm  
2. **Comprehensive tests** covering both backslash (convert) and forward slash (preserve) cases
3. **Edge case handling**

I'll start with the specification changes first, then the tests. Should I create a draft PR for the spec changes, or would you prefer to see the proposed changes in this issue first?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/873#issuecomment-3016027198
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/873/3016027198@github.com>

Received on Saturday, 28 June 2025 20:56:36 UTC