NEW299299
customElementRegistry.initialize does not initialize elements as expected
https://bugs.webkit.org/show_bug.cgi?id=299299
Summary customElementRegistry.initialize does not initialize elements as expected
Steve Orvell
Reported 2025-09-22 09:47:31 PDT
When `customElementRegistry.initialize` is called on elements in a declarative shadowRoot with no registry, it does not initialize the elements as expected. See reproduction: https://codepen.io/Steve-Orvell/pen/RNrNjXr?editors=1000 The expectation is based on this part of the spec: https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-initialize "For each inclusive descendant inclusiveDescendant of root: if inclusiveDescendant is an Element node whose custom element registry is null: Set inclusiveDescendant's custom element registry to this."
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-29 09:48:13 PDT
Note You need to log in before you can comment on or make changes to this bug.