Re: [webcomponents]: Platonic form of custom elements declarative syntax

On Wed, Apr 10, 2013 at 3:30 PM, Daniel Buchner <daniel@mozilla.com> wrote:

> @John - in my opinion, <template bindtotagname="my-yay"> is the wrong
> direction. You should be declaring which *template* an *element* uses, not
> which element a template captures. Having templates latch onto element
> types from afar breaks the one-to-many case, prevents sane swapping of
> templates on a specific element node, and many other oddities.
> Alternatively, <element template="id-of-some-template"> is more flexible
> and the right 'direction' for such an association that suffers none of
> those issues, at least in my opinion. Feel free to disagree or set me
> straight if anything I said is not accurate :)
>

I don't have any opinion on this aspect, sorry. I was only offering a
modernization of an old and not-popular-among-purists way of connecting
scripts and elements.
jjb

Received on Wednesday, 10 April 2013 22:43:11 UTC