Next message: Terje Bless: "Re: Better internationalization of validator"
Date: Mon, 11 Jun 2001 19:55:11 -0400 (EDT)
From: Liam Quinn <liam@htmlhelp.com>
To: "Peter K. Sheerin" <pete@petesguide.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.30.0106111950580.24269-100000@server.htmlhelp.com>
Subject: Re: xhtml+javascript. bug?
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