Re: [WICG/webcomponents] [dom-parts] Declarative syntax for creating DOM Parts (Issue #1003)

There's an unfortunate stipulation I had missed in my proposal:

According to MDN:

>The itemtype attribute can only be specified on elements which have an itemscope attribute specified.

Personally, I think this should be lifted (thinking about primitive types), but that's an uphill battle.

So I've updated the [proposal](https://github.com/WICG/webcomponents) so that template instantiation would only dynamically set itemprop, itemref and meta tags with content, and not emit any itemtypes whatsoever, leaving that part up to the developer.

The proposal is extremely light now, and I recognize it could be done via tooling, that would compile to the template syntax, whatever that syntax is, if there are any objections to it.   

But I do think it is possible, based on what I know, to fully define a hierarchical tree beyond what the HTML structure provides, with the help of meta tags, and itemref/itemscope and  id's, without needing to introduce yet more new syntax in the HTML (processing instructions), and without violating proper HTML decorum.  And sticking with moustache syntax.  Please let me know if I'm missing anything.

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

Message ID: <WICG/webcomponents/issues/1003/1547039586@github.com>

Received on Monday, 15 May 2023 00:11:37 UTC