Re: [WICG/webcomponents] [scoped-registries] How does customElements.upgrade() work? (Issue #1001)

If the upgrade call happens before the definition of x-c in x-b's shadow root, then upgrade needs to be called again after that, right? F.e. imagine x-b is fetching the JS for x-c while the first upgrade() call happens.

Or, will the scoped registry be marked as "upgraded" such that as soon as the definition for x-c is defined, x-c will be upgraded even if the tree is disconnected?

About the ordering (acknowledging that option 2 is already chosen), it shouldn't matter, because if consumers needing to interact with other elements use `whenDefined` to robustly know when elements are ready to be interacted, upgrade order won't matter.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1001#issuecomment-1722751238
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1001/1722751238@github.com>

Received on Monday, 18 September 2023 04:49:41 UTC