Steps to reproduce
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.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Brad E.”
Changed Assigned To to “Arron E.”
Changed Title from “Throw "SyntaxError" for location.protocol” to “Throw "SyntaxError" for location.protocol”