Re: [whatwg/dom] customElementRegistry.initialize should provoke custom elements to upgrade (Issue #1408)

sorvell left a comment (whatwg/dom#1408)

> This was a rather intentional design decision as upgrade is somewhat costly and we wanted to give web developers control over when that happens. 

I agree that control over upgrades would be valuable, but as exposed here it can't be relied upon. I don't think this is critical to change, but it does seem like a foot gun for the common case. In the example above `document.body.append(host)` will also cause the `child` to upgrade. So as an element author, even if I want to keep my initialized tree in an un-upgraded state, I cannot.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1408#issuecomment-3362089372
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1408/3362089372@github.com>

Received on Thursday, 2 October 2025 16:30:53 UTC