Re: [whatwg/url] feat: handle Windows file paths with backslashes in URL parsing (PR #874)

@mertcanaltin commented on this pull request.



> +       <li><p>Prepend "<code>///</code>" to <a>remaining</a>.
+       <li><p>Set <var>state</var> to <a>file state</a>.

there is a difference - file state sets the scheme to "file" and host to empty string, plus it has special handling for base URLs and Windows drive letters that path state doesn't have. So we need to go through file state first to get the proper file URL setup.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/874#discussion_r2213896362
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/874/review/3030391881@github.com>

Received on Thursday, 17 July 2025 17:21:14 UTC