Skip to content

Should protocol setter remove tabs and newline? #609

@TimothyGu

Description

@TimothyGu

Consider the following test:

u = new URL("https://github.com/whatwg/url/issues/new");
u.protocol = "ht\ntp";
u.href

On Chrome, Firefox, and Safari, u.href retains the original https protocol. This behavior as it relates to the Location object is in fact tested by WPT(!): search for \x0A in html/browsers/history/the-location-interface/location-protocol-setter.html.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions