Throw TypeError instead of InvalidStateError for custom elements
After [1], the correct error to throw when upgrading a custom element is now TypeError, rather than InvalidStateError. Firefox and Safari have already changed to this, Chrome is now the odd-one-out. [1] https://github.com/whatwg/html/pull/4525 Fixed: 1057423 Change-Id: Ifebcbc5823370a05cbebecf3ddf39d6ecbe260b6 Bug: 1057423 Cq-Do-Not-Cancel-Tryjobs: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082086 Commit-Queue: Mason Freed <masonfreed@chromium.org> Auto-Submit: Mason Freed <masonfreed@chromium.org> Reviewed-by:Nate Chapin <japhet@chromium.org> Cr-Commit-Position: refs/heads/master@{#746476}
Showing
Please register or sign in to comment