- From: Steve Orvell <notifications@github.com>
- Date: Thu, 21 Nov 2024 06:20:30 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 November 2024 14:20:34 UTC
> In that case the div would have the global registry as that's how you created it. So it would pull x-foo from there. I think it's likely important to be able to understand what will happen when setting `innerHTML` on an element (at the least for testing). If this is the case, wouldn't we need a new API for "what registry what I created in"? ```js shadowRoot1.append(div1); shadowRoot1.append(div2); div1.innerHTML = `<x-foo></x-foo>`; div2.innerHTML = `<x-foo></x-foo>`; ``` It seems fairly unintuitive to me that these `x-foo` elements might be totally different. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1040#issuecomment-2491341425 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1040/2491341425@github.com>
Received on Thursday, 21 November 2024 14:20:34 UTC