Skip to content

Cannot empty URL port #10508

Closed
Closed
@stevenvachon

Description

@stevenvachon
const url = new URL("http://domain:12345/");
url.port = "";
console.log(url.port); //-> "12345"

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