- From: Mason Freed <notifications@github.com>
- Date: Mon, 18 Sep 2023 09:18:38 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 18 September 2023 16:18:43 UTC
> It's worth noting that processing instructions are a node type that already exists for XML and is unused for HTML.
>
> If the syntax starting with `{{` and ending with `}}` it started with `<?` and ended with `?>`, what would be worse and what would be better?
That was the original concept - see https://github.com/tbondwilkinson/dom-parts/issues/5. But there are issues:
1. It's an odd syntax, and for HTML the equivalent comments would need to work also (e.g. `<!--?whatever?-->`).
2. It doesn't work for attribute parts in any kind of ergonomic way.
3. `<div {{}}>` is just so much nicer than `<?node-part?><div>`, etc.
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1028#issuecomment-1723835612
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1028/1723835612@github.com>
Received on Monday, 18 September 2023 16:18:43 UTC