- From: Daniel Herr <notifications@github.com>
- Date: Tue, 29 Oct 2024 22:18:14 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 30 October 2024 05:18:18 UTC
> Using a template or fragment is different. I propose adding a new element to handle this, named `compose`. It would look something like this: > > ``` > <compose src="#sharedHeader"></compose> > <compose src="#productCard"></compose> > ``` > > Note: We could enable the `src` attribute to both import and compose as a convenience. But I think importing and using are two different things and minimally need what is shown above. > > Open Question: Could `compose` be a processing instruction or something else besides an element? Ideally, the composition should not affect the dom structure. It's really only a location where the composition should occur. Could `<slot>` be reused for this? Something like this but with the standard `<slot>`? https://sergey.trysmudford.com/slots/ -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1059#issuecomment-2445874795 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1059/2445874795@github.com>
Received on Wednesday, 30 October 2024 05:18:18 UTC