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

Re: xhtml+javascript. bug?

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 11 Jun 2001 19:55:11 -0400 (EDT)
To: "Peter K. Sheerin" <pete@petesguide.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.30.0106111950580.24269-100000@server.htmlhelp.com>
On Mon, 11 Jun 2001, Peter K. Sheerin wrote:

> I had the same problem, but solved it using the combination of HTML and
> Javascript comment tags, as in:
>
> <!--
> js code
> //-->
>
> Can you explain the difference between why each one of these methods works,
> and if there are any problems with the one I used?

An XHTML browser will ignore your JavaScript because it's commented out.

> Do I *really* need to use the CDATA marking?

Why not use external JavaScript files?

-- 
Liam Quinn
Received on Monday, 11 June 2001 19:55:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT