Re: [w3c/webcomponents] [templates] If HTML Template Instantiation proposal is adopted, consider a HTML-native syntax (#695)

I don't think this is an option. Too much ambiguity with HTML semantics, e.g.: are elements siblings? what is the parent-child relationship of elements when they have a `<if>` in between? Are those new elements inert?
Can I use global html attributes on those inert elements? can I query them?

`<else>` is even more complicated and error prompt. what if there are elements between the `if` and the `else`? what if there are comments, or empty nodes? This doesn't really work without adding a bunch of new semantics to the HTML structure.

On the other hand, `<template>` is already special, and in the future it might be extensible via custom directives. Let's stick to that for anything that is inert.

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

Received on Friday, 3 November 2017 17:29:57 UTC