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

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 UTC