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

Re: Generic (R)CDATA Parsing Algorithm (part of detailed review of HTML parsing)

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 1 Oct 2007 23:44:55 +0000 (UTC)
To: Geoffrey Sneddon <foolistbar@googlemail.com>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0710012342510.8166@hixie.dreamhostps.com>

On Mon, 1 Oct 2007, Geoffrey Sneddon wrote:
> Currently the parsing algorithm's step 7 causes a parse error. What is 
> the intended behaviour after this parse error is thrown?

You continue with whatever called the algorithm.

> We surely can't treat the closing script tag in <style></script></style> 
> as the end of the algorithm, though perhaps I'm trying to follow too 
> much logic for HTML.

There is no closing script tag in that fragment. The string "</script>" 
doesn't ever get converted into a tag, it becomes text tokens.

(Currently, I believe the only way you can get to step 7 without an end 
tag token with the same tag name as the start tag token is if you hit an 
EOF token instead. But that doesn't actually matter to the algorithm, and 
is not something that need necessarily be true.)

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 1 October 2007 23:45:08 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:27 UTC