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

Add customElements.upgrade() #3535

Merged
merged 3 commits into from
Mar 7, 2018
Merged

Add customElements.upgrade() #3535

merged 3 commits into from
Mar 7, 2018

Conversation

domenic
Copy link
Member

@domenic domenic commented Mar 6, 2018

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 )

@domenic domenic added addition/proposal New features or enhancements topic: custom elements Relates to custom elements (as defined in DOM and HTML) needs tests Moving the issue forward requires someone to write tests labels Mar 6, 2018
Copy link

@caridy caridy left a comment

Choose a reason for hiding this comment

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

LGTM

@domenic domenic removed the needs tests Moving the issue forward requires someone to write tests label Mar 7, 2018
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>,
Copy link
Contributor

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?

Copy link
Member Author

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.

@domenic
Copy link
Member Author

domenic commented Mar 7, 2018

Updated the spec and tests to be shadow-including!

@annevk
Copy link
Member

annevk commented Mar 7, 2018

(Still needs browser bugs.)

@domenic domenic merged commit 6df4863 into master Mar 7, 2018
@domenic domenic deleted the ce-upgrade branch March 7, 2018 05:23
@domenic
Copy link
Member Author

domenic commented Mar 7, 2018

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.)

@tkent-google
Copy link
Contributor

LGTM

tkent-google pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 7, 2018
* Add tests for customElements.upgrade()

Follows whatwg/html#3535.

* Fix one test; test that it's shadow-including descendants
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 1, 2018
…=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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 2, 2019
…=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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 2, 2019
…=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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 2, 2019
…=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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements topic: custom elements Relates to custom elements (as defined in DOM and HTML)
Development

Successfully merging this pull request may close these issues.

4 participants