W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: Parsing of HTML fragments

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 24 Apr 2007 15:01:51 -0700
Message-Id: <89AD6C69-407F-4736-B1EE-4209FBE85315@apple.com>
Cc: "Edward O'Connor" <hober0@gmail.com>, public-html@w3.org, foolistbar@googlemail.com
To: Dão Gottwald <dao@design-noir.de>


On Apr 24, 2007, at 2:54 PM, Dão Gottwald wrote:

>
> Edward O'Connor schrieb:
>>> One thing I strongly believe need to be defined clearly is how HTML
>>> fragments, such as those in Atom documents, are to be parsed.
>
> Which concrete problems do you see?
>
>> If this WG adopts the WHATWG draft, I imagine this would be  
>> handled by the
>> innerHTML parsing mode.
>
> Um, not necessarily. A feed consumer doesn't have to use innerHTML  
> to insert fragments into a given document. In fact, HTML fragments  
> can be delivered as XML nodes instead of CDATA.

If HTML fragments are delivered using the XML serialization then  
there is no parsing issue, but there is still a question of how to  
process the resulting elements if displayed as [X]HTML, in UAs that  
give different behavior based on spec version.

Regards,
Maciej
Received on Tuesday, 24 April 2007 22:02:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:43 UTC