Skip to content

Document scopedcustomelementregistry and its HTMLElement reflection #45383

Description

@ja-y-son

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry

What information is incomplete?

The HTML Standard is adding the scopedcustomelementregistry global content attribute and the reflecting HTMLElement.scopedCustomElementRegistry IDL attribute.

The content attribute affects HTML parser creation: the element and its parsed subtree begin with a null custom element registry so a scoped CustomElementRegistry can claim the subtree later through initialize(). Changing the attribute after element creation does not change the assigned registry. The IDL attribute reflects as a DOMString for future extensibility.

What should be documented?

  • The scopedcustomelementregistry global attribute.
  • HTMLElement.scopedCustomElementRegistry string reflection.
  • Parser-only behavior and the relationship to CustomElementRegistry.initialize().
  • Serialization behavior at custom element registry boundaries.
  • Browser compatibility once implementations adopt the final specification.

References

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions