-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Open
Description
What is the problem this feature will solve?
Node.js should implement the new WHATWG URL specification
feature for Windows file path handling. Currently Windows
drive letter patterns are not automatically converted to
file:/// URLs.
What is the feature you are proposing to solve the
problem?
When parsing URLs, Windows drive letter patterns
([a-zA-Z]:) should automatically convert to file:/// URLs
with forward slashes.
What alternatives have you considered?
This is a spec compliance issue - the WHATWG URL
specification is adding this feature.
Example
new URL("C:\\folder\\file.txt")
// Should output: file:///C:/folder/file.txt
Related links
- Spec PR: feat: handle Windows file paths with backslashes in URL parsing whatwg/url#874
- Original issue: Windows file paths in URL parsing whatwg/url#873
- Tests:
accepting windows backslash paths web-platform-tests/wpt#53459 - Chromium: https://issues.chromium.org/issues/437449112
- Gecko: https://webcompat.com/issues/170937
- WebKit: https://bugs.webkit.org/show_bug.cgi?id=297169
- Deno: http://github.com/denoland/deno/issues/30363
Metadata
Metadata
Assignees
Labels
No labels