Document scopedcustomelementregistry and its HTMLElement reflection

Open
#45,383 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
html, javascript

Research direction

Start with the MDN CustomElementRegistry page and compare the requested behavior with the linked HTML, DOM, and Web Platform Tests pull requests. Document the global attribute, HTMLElement.scopedCustomElementRegistry reflection, parser-only behavior, initialize() relationship, and serialization boundaries. Finish by adding browser compatibility information once implementations adopt the final specification.

Written by the indexing model from the issue text.

Description

area: Web Components Content:WebAPI waiting for implementations
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
Dominant language
Markdown
Stars
11.2k
Forks
23.3k
Avg merge
2d 6h
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mdn/content

All issues in mdn/content

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.