[whatwg/dom] Introduce keep custom element registry null for elements (PR #1500)

Introduce an element-level `keep custom element registry null` flag for use by whatwg/html#12000.

The flag distinguishes intentionally null parser-created registries from uninitialized null registries. Cloning preserves the flag and does not apply a fallback registry to flagged elements. Adoption preserves a flagged null registry while retaining the existing behavior for unflagged null, global, and scoped registries.

Tests: https://github.com/web-platform-tests/wpt/pull/62206
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1500

-- Commit Summary --

  * Introduce keep custom element registry null for elements

-- File Changes --

    M dom.bs (28)

-- Patch Links --

https://github.com/whatwg/dom/pull/1500.patch
https://github.com/whatwg/dom/pull/1500.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1500
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1500@github.com>

Received on Wednesday, 26 August 2026 22:35:11 UTC