W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

[whatwg] [webcomponents] Template element parser changes => Proposal for adding DocumentFragment.innerHTML

From: Simon Pieters <simonp@opera.com>
Date: Mon, 07 May 2012 10:34:26 +0200
Message-ID: <op.wdxjfolnidj3kv@simons-macbook-pro.local>
On Fri, 04 May 2012 23:46:46 +0200, Ian Hickson <ian at hixie.ch> wrote:

> On Fri, 4 May 2012, Rafael Weinstein wrote:
>>
>> This is the current proposal:
>>
>> http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0334.html
>
> I don't really understand the proposal.
>
> How does it relate to the template feature?
>
> What does it do in the case of:
>
>    var frag = document.createDocumentFragment();
>    frag.innerHTML = 'bla bla .. 1GB of text .. bla <caption> bla' ?

When hitting non-whitespace text, it seems better to use "in body", I  
think.

> Why do we imply a tbody if the input is "<tr></tr><div></div>"?
>
> Since you need the context element to know how to initialise the
> tokeniser, how do you find the first tag?
>


-- 
Simon Pieters
Opera Software
Received on Monday, 7 May 2012 01:34:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT