W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

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

From: Rafael Weinstein <rafaelw@google.com>
Date: Tue, 24 Apr 2012 05:26:16 -0700
Message-ID: <CABMdHiR2eDQMiE8LX+srNURb-gVQy+USVRK_C-4T8CnhkRRVHQ@mail.gmail.com>
To: Ryosuke Niwa <rniwa@webkit.org>
Cc: Webapps WG <public-webapps@w3.org>, Yehuda Katz <wycats@gmail.com>
No, I hadn't. Let me digest this thread. Much of what I'm implicitly
asking has already been discussed. I'll repost if I have anything to
add here. Apologies for the noise.

On Mon, Apr 23, 2012 at 10:32 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:
> Have you looked
> at http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0663.html ?
>
> On Mon, Apr 23, 2012 at 8:39 PM, Rafael Weinstein <rafaelw@google.com>
> wrote:
>>
>> The main points of contention in the discussion about the template element
>> are
>>
>> 1) By what mechanism are its content elements 'inert'
>> 2) Do template contents reside in the document, or outside of it
>>
>> What doesn't appear to be controversial is the parser changes which
>> would allow the template element to have arbitrary top-level content
>> elements.
>>
>> I'd like to propose that we add DocumentFragment.innerHTML which
>> parses markup into elements without a context element. This has come
>> up in the past, and is in itself a useful feature. The problem it
>> solves is allowing templating systems to create DOM from markup
>> without having to "sniff" the content and only innerHTML on an
>> appropriate parent element (Yehuda can speak more to this).
>>
>> The parser changes required for this are a subset of the changes that
>> Dimitri uncovered here:
>>
>> http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
>>
>> And I've uploaded a webkit patch which implements them here:
>>
>> https://bugs.webkit.org/show_bug.cgi?id=84646
>>
>> I'm hoping this is a sensible way to make progress. Thoughts?
>>
>
Received on Tuesday, 24 April 2012 12:26:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:51 GMT