Skip to content

Document Windows file path handling in URL parsing (WHATWG URL #874) #40686

@mertcanaltin

Description

@mertcanaltin

What information was incorrect, unhelpful, or incomplete?

The URL API documentation should be updated to reflect the
new Windows file path handling feature being added to the
WHATWG URL specification.

What did you expect to see?

Documentation explaining that Windows drive letter patterns
(like C:\folder\file.txt) are automatically converted to
file:/// URLs when parsed.

Example

new URL("C:\\folder\\file.txt")
// Returns: file:///C:/folder/file.txt

Implementation status

Implementation bugs have been filed:

Related links

This documentation update should be made once the spec
change is merged and browsers begin implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions