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: Thu, 17 Nov 2011 12:50:27 -0800
Message-ID: <CAAWBYDDnuD-BDyrnmThbE56CVf1PKRBPMr7LwRAhf_sMzEDZdw@mail.gmail.com>
On Thu, Nov 17, 2011 at 11:15 AM, Rafael Weinstein <rafaelw at chromium.org> wrote:
> For parsing, the template element's contents are treated as HTML, but
> aren't subjected to normalization or placement/lifting rules.

For the placement/lifting rules, we can ride on the coattails of the
innerHTML parsing discussion, which wants to add a "null context"
parsing mode to the HTML parser.

What's the reasoning for not doing attribute normalization?  By that I
assume you mean translating boolean attributes into having their name
as their value?

> Big question: by what mechanism are these elements inert?

I like Adam's suggestion of a new document without a browsing context.
 You can still move the elements into the active document and have
them "just work", and all the other issues are taken care of "for

Received on Thursday, 17 November 2011 12:50:27 UTC

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