W3C home > Mailing lists > Public > public-xml-er@w3.org > March 2012

CDATA bracket state

From: David Carlisle <davidc@nag.co.uk>
Date: Sun, 04 Mar 2012 11:09:05 +0000
Message-ID: <4F534D51.8030602@nag.co.uk>
To: W3C XML-ER Community Group <public-xml-er@w3.org>
<x><![CDATA[ abc ]xyz]>   www]]></x>

is, I think, well formed XML, with the entire content of x being a CDATA 
section.

However after the first ] the draft tokeniser switches to CDATA bracket 
state and consumes the xyz in that state ("Anything else" production) 
which means it switches to CDATA end state and closes the CDATA section 
token after xyz not after www.

Shouldn't "Anything else" in CDATA bracket state say

Anything else
Emit a U+005D (]) character. Reprocess the current input character in 
the CDATA state.

David
Received on Sunday, 4 March 2012 11:09:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 4 March 2012 11:09:42 GMT