-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add customElements.upgrade() #3535
Conversation
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
source
Outdated
|
||
<ol> | ||
<li><p>Let <var>candidates</var> be a <span>list</span> of all of <var>root</var>'s | ||
<span data-x="inclusive descendant">inclusive descendants</span>, in <span>tree order</span>, |
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.
It's not "shadow-including inclusive descendant" intentionally?
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.
Good question! We did not think about it in any previous discussions. But I think it should be shadow-including to be consistent with the normal upgrades when you connect to the main document---those use "connected", not "in a document tree".
I will fix and add more tests.
Updated the spec and tests to be shadow-including! |
(Still needs browser bugs.) |
Browser bugs:
(None for Edge as they are still in the very initial stages of custom elements so this will come as they work on the spec.) |
LGTM |
* Add tests for customElements.upgrade() Follows whatwg/html#3535. * Fix one test; test that it's shadow-including descendants
…=testonly Automatic update from web-platform-testsAdd tests for customElements.upgrade() (#9869) * Add tests for customElements.upgrade() Follows whatwg/html#3535. * Fix one test; test that it's shadow-including descendants wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869
…=testonly Automatic update from web-platform-testsAdd tests for customElements.upgrade() (#9869) * Add tests for customElements.upgrade() Follows whatwg/html#3535. * Fix one test; test that it's shadow-including descendants wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 UltraBlame original commit: ce9bf92f06c09e01e0f52048e8e6d1602357342d
…=testonly Automatic update from web-platform-testsAdd tests for customElements.upgrade() (#9869) * Add tests for customElements.upgrade() Follows whatwg/html#3535. * Fix one test; test that it's shadow-including descendants wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 UltraBlame original commit: ce9bf92f06c09e01e0f52048e8e6d1602357342d
…=testonly Automatic update from web-platform-testsAdd tests for customElements.upgrade() (#9869) * Add tests for customElements.upgrade() Follows whatwg/html#3535. * Fix one test; test that it's shadow-including descendants wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 wpt-commits: e3b651475426769bba0f043fd53e11a9c4ef93d5 wpt-pr: 9869 UltraBlame original commit: ce9bf92f06c09e01e0f52048e8e6d1602357342d
Closes WICG/webcomponents#710.
@tkent-google and @rniwa might be interested in reviewing. /cc @whatwg/components
Tests: web-platform-tests/wpt#9869
/custom-elements.html ( diff )
/infrastructure.html ( diff )