#1070: Scoped Custom Element Registries

Visit on Github.

Opened Mar 18, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of Scoped Custom Element Registries.

This is a proposal allows for multiple custom element definitions for a single tag name to exist within a page. This is accomplished by allowing user code to create multiple custom element registries and associate them with shadow roots that function as scopes for element creation and custom element definitions. Potentially custom elements created within a scope use the registry for that scope to perform upgrades. Changes to Document, Element, ShadowRoot, and HTMLTemplateElement APIs provide the surface area of this feature.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Previous early design review, if any: N/A
  • Relevant time constraints or deadlines: WebKit seems to have a complete implementation and so may well be shipping soon.
  • The group where the work on this specification is currently being done: WHATWG
  • The group where standardization of this work is intended to be done (if different from the current group):
  • Major unresolved issues with or opposition to this specification: I don't think there are any.
  • This work is being funded by: Apple

Discussions