Re: [WICG/webcomponents] [Scoped Registries] Can disconnected elements can retain their shadowroot via dangling treeroot pointer? (Issue #1078)

> Could someone clarify the exact situation in which this will be useful again?

When you create an element via a scoped registry, but it's not attached to the document, ie:

```ts
const el = shadowRootWithRegistry.createElement('div');
el.innerHTML = `<x-foo></x-foo>`;
shadowRootWithRegistry.append(el);
```

We don't want `<x-foo>` upgrading in the gloabal registry in this case.

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

Message ID: <WICG/webcomponents/issues/1078/2452726995@github.com>

Received on Friday, 1 November 2024 23:45:48 UTC