Skip to content

Scoped custom element registry #3044

@captainbrosset

Description

@captainbrosset

Specification

https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-api

Description

window.customElements isn't the only way to register custom elements anymore and the spec allows the creation of scoped custom element registries by instantiating the CustomElementRegistry interface.

Documentation

Documentation doesn't exist yet, but the following mdn/content and mdn/browser-compat-data issues exist:

Browser support

Safari TP 214 has support for the feature: https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-214#Web-API

Chromium's support is from 2022 (bug), but the spec changed last year, see whatwg/html#10854 and the new chromium bug. So, it's probably fair to assume that the feature is not supported in Chromium.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions