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

Escaping text span in CDATA elements and CSS comments

From: Veeven (వీవెన్) <veeven@gmail.com>
Date: Thu, 24 Jan 2008 10:26:51 +0530
Message-ID: <364476fa0801232056n1c3b4cd1m732f428a66c5d5b6@mail.gmail.com>
To: public-html-comments@w3.org

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'>

>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.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:24 UTC