W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: XHTML Validation

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Mon, 13 Nov 2000 20:46:28 CET
Message-Id: <200011132108.QAA24992@tux.w3.org>
To: <html-tidy@w3.org>
In <000101c04da3$bd4e30c0$fa21e540@IanEvans>, "Ian M. Evans" <ianevans@digitalhit.com> writes:
> Just trying to get my docs to pass the XHTML 1.0 validation. One part of a
> JavaScript is tripping it up twice (one for each &)
> 
> { if ((typeof window.sidebar == "object") &&
> Error: character "&" is the first character of a delimiter but occurred as
> data
> 
> Is there anything I can do manually or via Tidy to change this?

Where feasible the easiest way to handle Javascript code is to move it to a 
separate file. Otherwise place the whole script in a CDATA section.

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Monday, 13 November 2000 16:08:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT