[whatwg] CDATA and RCDATA restrictions don't always trigger a parse error

Simon Pieters zcorpan at gmail.com
Wed Jun 20 15:31:58 PDT 2007


On Wed, 20 Jun 2007 22:31:37 +0200, Henri Sivonen <hsivonen at iki.fi> wrote:

> On Jun 20, 2007, at 14:48, Anne van Kesteren wrote:
>
>> Currently CDATA and RCDATA are required not to contain the string </ 
>> script> for instance if the start tag is <script>. However, the  
>> following does not trigger a parse error:
>>
>>   <script><!-- </script> --></script>
>>
>> yet it is non-conforming. Given that conformance checkers are required  
>> to follow the parsing section this is a problem I think.
>
> Would there be harm in resolving this by making it conforming?

The harm might be that it's not compatible with Firefox in Standards mode.

-- 
Simon Pieters



More information about the whatwg mailing list