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

Simon Pieters simonp at opera.com
Mon May 7 01:34:26 PDT 2012


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



More information about the whatwg mailing list