W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2011

[whatwg] Declarative Inert DOM (e.g. the <template> element)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 18 Nov 2011 15:54:16 -0800
Message-ID: <CAAWBYDBydqS+HWYV6xCMLA1j9KSj5sXB78GzZ2H0bGRqyza6eA@mail.gmail.com>
On Fri, Nov 18, 2011 at 3:44 PM, Jonas Sicking <jonas at sicking.cc> wrote:
> Personally it seems to me that moving the elements out of the DOM such
> that you can't find them using gEBI/querySelector/firstChild is more
> surprising than useful.
> It would basically reduce the feature to syntax sugar for setting
> .innerHTML on an orphaned <div>. Is that really producing the best
> solution for authors?

No, it's still not syntax sugar.  You still get the lack of attribute
normalization, for example.

Is there a use-case for running .findAll over the document and getting
the contents of templates?  I don't think so, except for convenience
when you *know* you're only going to get the inside-the-template
element.  It's nearly as easy to just grab the template element and
run .findAll over it specifically, and that avoids the possibility of

Received on Friday, 18 November 2011 15:54:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC