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

Re: Escaping text span in CDATA elements and CSS comments

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 24 Jan 2008 17:34:55 +0100
To: Veeven (వీవెన్) <veeven@gmail.com>, public-html-comments@w3.org
Message-ID: <op.t5f0che364w2qv@annevk-t60.oslo.opera.com>

NB: This is my personal view...

On Thu, 24 Jan 2008 05:56:51 +0100, Veeven (వీవెన్) <veeven@gmail.com>  
> 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.

In CSS they are not comment delimiters.

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

CSS has knowledge about "<!--" and "-->" which make CSS treat those as  
expected. There are no such rules for "<![CDATA[" and "]]>" and that would  
not make much sense as those are syntactic sugar for XML and not for HTML.

Anne van Kesteren
Received on Thursday, 24 January 2008 16:31:39 UTC

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