Skip to content

Paths should only be evaluated for known protocols #4

@passy

Description

@passy
var url = new URL('unicorn://example.com/i/dont/even/know')
url.pathname === undefined | ''

Have to read the spec again. Chrome doesn't parse the URL at all and returns an empty object with all attributes set to undefined (I don't think that's what the spec says) whereas Firefox returns an empty string. Sigh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions