W3C home > Mailing lists > Public > www-validator@w3.org > October 2004

Decrement does not validate in a page with JavaScript

From: Whittaker, Ray <ray.whittaker@eds.com>
Date: Fri, 1 Oct 2004 04:56:25 -0400
Message-ID: <FD1D073FD11ED6119DAA0002A5F10042044A9FEF@gblym201.exgb02.exch.eds.com>
To: www-validator@w3.org


Just a note to point out a small issue I had with your validator.

I have a block of JavaScript in one of my pages that contains two blocks of
code. The script is used to switch slides in a CSS based slide show. The two
blocks of code are almost identical to each other since they perform similar
functions. One loads the next image in the sequence, the other loads the
previous image. To achieve this I have used an integer counter, which I have
called currentSlide. 

The validator does not have a  problem when I increment the counter as in
'currentSlide++;' but throws an error when the counter is decremented
(currentSlide--;). The page validates when I put a longhand version into the
code (currentSlide = currentSlide - 1) so it is not a major issue but the
shorthand should surely be recognised as valid code.


Ray Whittaker
Received on Friday, 1 October 2004 10:06:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:43 UTC