Escaping text span in CDATA elements and CSS comments

As per the Draft, CDATA elements can use "<!--" and "-->" as escaping
text span start and end, respectively. However, CSS accepts them as
comment delimiters. It seems to me that the following code would have
different meanings from the point of view of HTML5 and CSS5.

<style type='text/css'>
<!--
body{color:green;}
-->
</style>

>From the HTML5 point of view, the style rule is seen as escaped text.
And from CSS3, it is a comment and style should not be applied. Is my
interpretation right here? Or, am I missing something?

I think, for CDATA and RCDATA elements, we can still use "<![CDATA["
as start and  "]]>" as end.


Thanks,
Veeven.


-- 
http://veeven.com/

Received on Thursday, 24 January 2008 12:53:15 UTC