- From: Michael Warren <notifications@github.com>
- Date: Wed, 10 Jan 2024 06:37:22 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 January 2024 14:37:29 UTC
> Just to clarify, I believe in general if there is no global definition, you won't have to use ShadowRoot.createElement. This is because the element will follow the rules of custom element upgrade, meaning it will upgrade when it's attached to the DOM (as long as it's :not(:defined) at that point). So however it's created, as long as it's initially attached to a shadowRoot with a scoped registry, it'll use that registry to upgrade... which is presumably what's expected. This would work for the React MFE use case then I think? Possibly the `template.innerHTML` approach also as any components would upgrade using whatever registry was associated with the root node of where the cloned template gets added to the DOM? -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1043#issuecomment-1884969262 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1043/1884969262@github.com>
Received on Wednesday, 10 January 2024 14:37:29 UTC