-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Make upgrade an element throw more #4673
Conversation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I was going to make a PR like this. Thanks!
I'll make a WPT PR.
…w root and disabledFeatures Specification PR: whatwg/html#4673
Test PR: web-platform-tests/wpt#17162 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, so |
…ding Specification PR: whatwg/html#4673 Bug: 972951 Change-Id: I9e3db95eb15e2e40d9e3412e97873f795cc7b028 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1657521 Reviewed-by: Hayato Ito <hayato@chromium.org> Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#668768}
…failure due to non-null shado…, a=testonly Automatic update from web-platform-tests HTML: test upgrade custom element failure due to disabledFeatures Specification PR: whatwg/html#4673. -- wp5At-commits: a3dcc65d854e242e61aeb1c68c26742cd278ea9a wpt-pr: 17162
…failure due to non-null shado…, a=testonly Automatic update from web-platform-tests HTML: test upgrade custom element failure due to disabledFeatures Specification PR: whatwg/html#4673. -- wp5At-commits: a3dcc65d854e242e61aeb1c68c26742cd278ea9a wpt-pr: 17162
…failure due to non-null shado…, a=testonly Automatic update from web-platform-tests HTML: test upgrade custom element failure due to disabledFeatures Specification PR: whatwg/html#4673. -- wp5At-commits: a3dcc65d854e242e61aeb1c68c26742cd278ea9a wpt-pr: 17162 UltraBlame original commit: d029a500f958bb1754e910cabdb554615bd43064
…failure due to non-null shado…, a=testonly Automatic update from web-platform-tests HTML: test upgrade custom element failure due to disabledFeatures Specification PR: whatwg/html#4673. -- wp5At-commits: a3dcc65d854e242e61aeb1c68c26742cd278ea9a wpt-pr: 17162 UltraBlame original commit: d029a500f958bb1754e910cabdb554615bd43064
…failure due to non-null shado…, a=testonly Automatic update from web-platform-tests HTML: test upgrade custom element failure due to disabledFeatures Specification PR: whatwg/html#4673. -- wp5At-commits: a3dcc65d854e242e61aeb1c68c26742cd278ea9a wpt-pr: 17162 UltraBlame original commit: d029a500f958bb1754e910cabdb554615bd43064
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.
(See WHATWG Working Mode: Changes for more details.)
/custom-elements.html ( diff )
/infrastructure.html ( diff )