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

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 UTC