Skip to content

Invalid URL parsing #1111

@nikneym

Description

@nikneym

While this doesn't fail on Lightpanda:

let a = new URL("://foo.bar/path?query#fragment");
// a.protocol => ":"

It fails on Chrome:

let a = new URL("://foo.bar/path?query#fragment");
VM217:1 Uncaught TypeError: Failed to construct 'URL': Invalid URL
    at <anonymous>:1:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions