Skip to content

URLSearchParams regression #11208

Closed
Closed
@stevenvachon

Description

@stevenvachon
const url = new (require("url").URL)("http://www.domain.com:123/dir/file.html?var=&var=value&var=#hash");
console.log( Array.from(url.searchParams) );

logs:

[ [ 'var', '' ], [ 'var', '' ] ]

when it should be:

[ [ 'var', '' ], [ 'var', 'value' ], [ 'var', '' ] ]

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