- From: Justin Fagnani <notifications@github.com>
- Date: Tue, 09 Jan 2024 09:25:29 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 9 January 2024 17:25:37 UTC
This proposal already does that in the form of `ShadowRoot.createElement()`, etc. My hope is that when this lands we can update frameworks to use the scoped APIs when available. This should roughly be: ```ts const el = (container.getRootNode().createElement ?? document.createElement)(tagName); ``` or ```ts const fragment = (container.getRootNode().importNode ?? document.importNode)(template.content, true); ``` -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1043#issuecomment-1883480452 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1043/1883480452@github.com>
Received on Tuesday, 9 January 2024 17:25:37 UTC