Skip to content

Conversation

@annevk
Copy link
Member

@annevk annevk commented Oct 4, 2025

This significantly improves the reuse of custom elements in different registries.

Tests: web-platform-tests/wpt#55248.

Fixes #1407.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

This significantly improves the reuse of custom elements in different registries.

Tests: web-platform-tests/wpt#55248.

Fixes #1407.
Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

Yes +1; consider Mozilla interested.

@mfreed7
Copy link
Collaborator

mfreed7 commented Oct 6, 2025

This significantly improves the reuse of custom elements in different registries.

Tests: web-platform-tests/wpt#55248.

Fixes #1407.

Sounds reasonable to me. But I'd love if @dandclark could also take a look.

Quick thing: is there already an MDN issue filed for SCER overall? The existing page for attachShadow() doesn't include ShadowRootInit/customElementRegistry at all.

@annevk
Copy link
Member Author

annevk commented Oct 7, 2025

The original DOM PR (and HTML PR) has all the relevant pointers: #1341.

@annevk annevk merged commit eb29661 into main Oct 7, 2025
2 checks passed
@annevk annevk deleted the annevk/attachshadow-default branch October 7, 2025 06:29
@mfreed7
Copy link
Collaborator

mfreed7 commented Oct 7, 2025

The original DOM PR (and HTML PR) has all the relevant pointers: #1341.

Ahh great - thanks. MDN issue here: mdn/content#38266

annevk added a commit to whatwg/html that referenced this pull request Nov 24, 2025
whatwg/dom#1409 changed where attachShadow() obtains its registry so the serialization should account for that as well.

Tests: web-platform-tests/wpt#56134.

Fixes #11892.
annevk added a commit to whatwg/html that referenced this pull request Nov 24, 2025
…trees

In whatwg/dom#1409 this was changed for attachShadow(), but we forgot to change the HTML parser at the same time.

Tests: web-platform-tests/wpt#56134.

Fixes #11947.
annevk added a commit to whatwg/html that referenced this pull request Nov 25, 2025
…trees

In whatwg/dom#1409 this was changed for attachShadow(), but we forgot to change the HTML parser at the same time.

Tests: web-platform-tests/wpt#56134.

Fixes #11947.
annevk added a commit to whatwg/html that referenced this pull request Nov 25, 2025
whatwg/dom#1409 changed where attachShadow() obtains its registry so the serialization should account for that as well.

Tests: web-platform-tests/wpt#56134.

Fixes #11892.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

attachShadow default custom element registry

5 participants