Re: [WICG/webcomponents] [declarative-custom-elements] do we need DOM parts or any template mechanism in spec? (Issue #1090)

to have the DCE viable, it have to have sufficient functionality to build full blown web app. With data retrieval layer, fully functional template (variables, conditions, loops, etc.), interactivity with browser and user (events & APIs). 

The "parts" is necessary peace of the data-template-logic triangle. In `<custom-element>` DCE impleentation parts exposed in template via `{}` and attribute value syntax. 

The subject for part content as slots as different kind of data: attributes of DCE, payload, slots, data `slice`, etc. 
The syntax for parts in `<custom-element>` is XPath, a native in browser selector across DOM. All data reflected via DOM, even if native can be JS object of API interface.

As for shadow or not, it can be left outside of DCE proposal, there are implementations in both. Shadowless version still has CSS scoping/insulation. The DCE concept gives insulation on logic and relations layer which makes shadow absolete.

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

Message ID: <WICG/webcomponents/issues/1090/2523715348@github.com>

Received on Friday, 6 December 2024 16:47:42 UTC