W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Re: Parsing: CDATA section processing

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 24 May 2008 09:19:28 +0000 (UTC)
To: John-Mark Bell <jmb@netsurf-browser.org>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0805240914360.12911@hixie.dreamhostps.com>

On Sun, 6 Apr 2008, John-Mark Bell wrote:
> 
> The current specification of how the tokeniser decides whether to 
> process CDATA sections or treat them as bogus comments relies upon the 
> tokeniser having access to the treebuilder's insertion mode and the 
> current node in the stack of open elements. I can't see any reason why 
> there is a need for this that couldn't be equally well served by a flag 
> controlled by the treebuilder (much like the existing content model 
> flag). Therefore, I propose the following:
> 
> Introduce a new tokeniser flag "processCDATASection", which is initially
> clear.
>
> [...]

Implementing it as you describe is completely acceptable, but I'm not 
confident that I'd be able to catch all the ways in which you can jump in 
and out of states to set the flag correctly. The flag would only be a 
proxy for the condition in the spec now anyway -- it seems better to just 
be explicit in the spec about what the spec is really doing.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 24 May 2008 09:20:06 UTC

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