W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: template namespace attribute proposal

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 12 Mar 2015 19:22:14 +0100
Message-ID: <CADnb78ic9Dj_NVAc=VcdvCOZrWSmuNVC1Uh+86Ej+309nO=Khg@mail.gmail.com>
To: Adam Klein <adamk@chromium.org>
Cc: Benjamin Lesh <blesh@netflix.com>, WebApps WG <public-webapps@w3.org>
On Thu, Mar 12, 2015 at 7:16 PM, Adam Klein <adamk@chromium.org> wrote:
> For clarity, is this significantly different from the below (which works
> today)?
>
> <template id="tmpl">
>   <svg>
>     <circle .../>
>   </svg>
> </template>
>
> Clearly there's an extra step here, in that accessing the SVG elements
> requires hopping into firstElementChild, but adding new namespace-related
> features seems unfortunate.

That was going to be my argument, but then I remembered that we went
out of our way to make <tbody>, <tr>, <td>, etc. work as direct
children of <template>.


-- 
https://annevankesteren.nl/
Received on Thursday, 12 March 2015 18:22:36 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:26 UTC