Re: xhtml+javascript. bug?

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