W3C home > Mailing lists > Public > www-validator@w3.org > April 2003

Validator bug with JavaScript loop code

From: Glenn H <translogik@hotmail.com>
Date: Wed, 16 Apr 2003 07:49:50 +0000
To: www-validator@w3.org
Message-ID: <Law14-F8HAaaz7EjQxz00001b28@hotmail.com>

Hi!

When validating the page at http://www.transmission.net.au/event/tickets.asp 
(http://validator.w3.org/check?uri=http%3A%2F%2Fwww.transmission.net.au%2Fevent%2Ftickets.asp), 
I get an error saying that the page isn't valid. Basically the only error 
that comes up is on the following line of JavaScript:

for (var i=0; i<lngNumItems; i++) {

Basically I think what's happening is that the validator thinks 
"<lngNumItems" is part of a new tag, when of course it's just JavaScript 
code.

Is there any possibility of getting this fixed up? I can get around it by 
putting <!-- --> around the JavaScript code, but am not going to since it's 
a hack for older browsers that don't understand the <script> tag (which I no 
longer support). Likewise I could fix it by adding in spaces (e.g. "i < 
lngNumItems"), but again this shouldn't be necessary.

Anyway, please let me know!

P.S. It's a great service that you have here! Invaluable...

Glenn  :-)
Enigma Records - http://www.enigmarecords.com.au
Translogik Software Pty Ltd - http://www.translogik.com


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail
Received on Wednesday, 16 April 2003 03:50:58 GMT

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