Closed Bug 1328843 Opened 7 years ago Closed 7 years ago

Throw "SyntaxError" for location.protocol

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1328894

People

(Reporter: annevk, Unassigned)

References

Details

(Keywords: good-first-bug)

Both Edge and Firefox throw some kind of internal non-standard error for location.protocol, so we decided to align with precedent and Chrome and Safari, which throw "SyntaxError".

https://github.com/w3c/web-platform-tests/pull/4412 has tests and additional details.

https://github.com/whatwg/html/pull/2245 has the HTML Standard change.
See Also: → 1328894
Priority: -- → P2
Wasn't this taken care of in [1] ?

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1328894
Dup to bug 1328894. Commit: https://hg.mozilla.org/mozilla-central/rev/28e96f6befce

Verified with comment 0 wpt-test on the latest m-c.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.