Re: Parsing of HTML fragments

On Tue, 24 Apr 2007, Dão Gottwald wrote:
> > 
> > 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.

The "innerHTML parsing mode" isn't restricted to innerHTML; it's just a 
way to parse fragments with a particular context. You can use the 
algorithm described for innerHTML in the spec for other purposes, such as 
this one.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 24 April 2007 23:16:19 UTC