Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Expect InvalidStateError instead of InvalidAccessError in document.open #13411
While working on servo/servo#21882, I noticed that the spec for
I believe the error was changed in this PR: whatwg/html#2672
Chrome, Safari, Firefox throw
InvalidAccessError is deprecated: https://heycam.github.io/webidl/#invalidaccesserror
You've found the right definition in the spec, and per that the spec is wrong. However, given that 3 implementations already throw InvalidAccessError I think it'd be unfortunate to try to change it. Better to change the spec back to use InvalidAccessError I think.