Skip to content

url: repeated slashes in file URL should be arranged #11188

Closed
@watilde

Description

@watilde

In the http scheme, the slashes after the colon are brought together in two, but it seems that it remains as it is in the file scheme.

const URL = require('url').URL

new URL('http://////example.com').href
//  =>  'http://example.com/'

new URL('file://////foo/bar').href
//  =>  'file://////foo/bar'
// it should be `file:///foo/bar`

Issue report on the spec: whatwg/url#232

Metadata

Metadata

Assignees

No one assigned

    Labels

    whatwg-urlIssues and PRs related to the WHATWG URL implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions