Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom-elements: Add a test for upgrade failure due to non-null shado… #17162

Merged
merged 4 commits into from Jun 11, 2019

Conversation

tkent-google
Copy link
Contributor

…w root and disabledFeatures

Specification PR: whatwg/html#4673

Copy link
Member

@hayatoito hayatoito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think It'd be ideal if we also caught the NotSupportedError using window.onerror, though maybe that's too involved with WPT?

@tkent-google
Copy link
Contributor Author

I think It'd be ideal if we also caught the NotSupportedError using window.onerror, though maybe that's too involved with WPT?

That's a good idea. Done.

@annevk annevk merged commit a3dcc65 into master Jun 11, 2019
annevk added a commit to whatwg/html that referenced this pull request Jun 11, 2019
In particular if folks disable support for ShadowRoot and ElementInternals, this will make upgrade an element throw a NotSupportedError so element constructors only run with expected state.

Tests: web-platform-tests/wpt#17162.
@annevk annevk deleted the tkent-upgrade-throws branch June 11, 2019 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants