W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: decrementing counter causes error [ve][53]

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 12 Nov 2005 21:05:19 +1100
Message-ID: <4375BE5F.5010906@lachy.id.au>
To: Garth Hamilton <garthah@computan.on.ca>
CC: www-validator@w3.org

Garth Hamilton wrote:
> 
> <script type="text/javascript">                           
>     <!-- hide from incomparible browsers
> ...
>             --curHorse;            // if moving to right then decrement 
> ...
>     // stop hiding from incompatible browsers -->
> </script>
> 
> creates an error      should it ?

As Jukka described, yes in XHTML.  This article should explain the issue 
nicely for you; it even discusses this specific problem.

http://lachy.id.au/log/2005/05/script-comments

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Saturday, 12 November 2005 10:05:36 GMT

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