W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: xhtml+javascript. bug?

From: Liam Quinn <liam@htmlhelp.com>
Date: Tue, 12 Jun 2001 21:30:27 -0700 (PDT)
To: "Peter K. Sheerin" <pete@petesguide.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.30.0106122121280.931-100000@localhost.localdomain>
On Tue, 12 Jun 2001, Peter K. Sheerin wrote:

> But another question. The reference you cited earlier also says you may need
> to use the CDATA statement for <style> definitions. When would this be the
> case? Only if you've got < or & in your style code?

Yes, that's what it says at <http://www.w3.org/TR/xhtml1/#h-4.8>.

> I can't think of when
> that could ever happen.

It'd certainly be rare in CSS2, but you could, for example, have a
background-image URL that includes an "&".

> What am I missing, and is it OK to not put the CDATA statement around normal
> style sheets?

Yes, it's okay.

Liam Quinn
Received on Wednesday, 13 June 2001 00:28:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:30 UTC