Re: [WICG/webcomponents] [scoped-registries] Consider future expansion to allow using a registry without new API (Issue #1043)

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