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

Cameron McCormack cam at mcc.id.au
Thu Nov 17 15:00:10 PST 2011

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.

More information about the whatwg mailing list