NEW307920
Incorrect customElementRegistry when using importNode to create elements
https://bugs.webkit.org/show_bug.cgi?id=307920
Summary Incorrect customElementRegistry when using importNode to create elements
Steve Orvell
Reported 2026-02-14 15:35:38 PST
When `document.importNode` is used to create elements that have a null registry, the resulting elements have an incorrect registry when importNode does not specify a registry. This should create elements with `customElementRegistry` set to the document default registry (e.g. window.customElements), but instead it is set to `undefined`, which incorrect and an invalid value. See reproduction (asserts in console): https://codepen.io/Steve-Orvell/pen/MYeRmQM?editors=0010
Attachments
Note You need to log in before you can comment on or make changes to this bug.