Skip to content

Implement Windows file path handling in URL parsing (WHATWG URL #874) #59415

@mertcanaltin

Description

@mertcanaltin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions