webcomponents / webcomponents/polyfills

[scoped-custom-element-registry] Support deferred scoped registry initialization

Open
#667 0 comments 0 reactions 0 assignees View on GitHub
Focus Area: Standards & Polyfills Type: Feature
Dominant language
HTML
Stars
1.2k
Forks
168
PR merge metrics
No merged PRs in 30d

Description

## Description

Add support for deferred scoped registry initialization. This means to support [`initialize()`](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/initialize) on the `CustomElementRegistry` interface that allows for associating a scoped registry with an already attached shadow root.

## Motivation

Associating scoped registries _after_ shadow roots were created can be useful in general. But it is needed to support scoped elements rendered on the server with Declarative Shadow DOM (that uses [`shadowrootcustomelementregistry`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template#shadowrootcustomelementregistry)).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.