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

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

From: Adam Barth <w3c@adambarth.com>
Date: Thu, 17 Nov 2011 15:04:20 -0800
Message-ID: <CAJE5ia_Nmw3CdAqodzBes7_ZA9MaYHXsXYjid=YC3VOp5qnHhg@mail.gmail.com>
On Thu, Nov 17, 2011 at 3:00 PM, Cameron McCormack <cam at mcc.id.au> wrote:
> On 18/11/11 8:21 AM, Adam Barth wrote:
>> Another option is to tokenize the elements as usual, but put them into
>> a new document created for the<template> ?element (presumably using
>> the usual tree-building rules). ?Because this document won't have a
>> browsing context, all the elements would be "inert", like they are for
>> documents created by XMLHttpRequest. ?The site could access this
>> document via a templateDocument (or whatever) property on
>> HTMLTemplateElement.
> This would introduce a pretty big difference between text/html and XML
> parsing of HTML documents.

There are already vast differences between the two.  That doesn't seem
worth worrying about.

Received on Thursday, 17 November 2011 15:04:20 UTC

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