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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 9 May 2012 22:41:10 +0200
Message-ID: <CAAWBYDAKsjRgTN5TXhET6XBEhcc=eTmyKZUAsD+hwKYhb5ccrQ@mail.gmail.com>
To: Scott González <scott.gonzalez@gmail.com>
Cc: Ian Hickson <ian@hixie.ch>, Jonas Sicking <jonas@sicking.cc>, Henri Sivonen <hsivonen@iki.fi>, Rafael Weinstein <rafaelw@google.com>, Webapps WG <public-webapps@w3.org>, Yehuda Katz <wycats@gmail.com>
On Wed, May 9, 2012 at 10:32 PM, Scott González
<scott.gonzalez@gmail.com> wrote:
> Perhaps I'm missing something, but isn't "foo<caption>bar</caption>" an
> invalid use case? Any top-level element that needs a context can't be mixed
> with a text node. Are there cases where this isn't true?

Yes - SVG, MathML, and Ruby text can all, in some circumstances,
validly have text before the first start tag of a fragment.

In addition, comments are always valid.  They're neither text nor start tags.

~TJ
Received on Wednesday, 9 May 2012 20:42:01 GMT

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