W3C home > Mailing lists > Public > www-validator@w3.org > June 2007

Re: Javascript Inequalities

From: Drake Wilson <drake@begriffli.ch>
Date: Wed, 20 Jun 2007 00:51:48 -0500
To: Thomas Eding <trinithis666@hotmail.com>
Cc: www-validator@w3.org
Message-ID: <20070620055148.GA28254@drache.begriffli.ch>
Quoth Thomas Eding <trinithis666@hotmail.com>, on 2007-06-13 23:45:49 +0000:
> 
> Your validator thinks something like "if(0<x)" is an unclosed <x> tag. 

That's probably because sometimes it is.  Particularly, in XHTML, it
is; start tags are recognized inside embedded JavaScript/CSS/whatever
blocks just like in any other blocks.

> Similar problems arise when using any of the other inequality operators 
> JavaScript provides.

That's probably because sometimes that's invalid, and you have to
escape the characters using &lt; (and possibly &gt;) or use an
external script file.  But you didn't say which DOCTYPE this is, so
it's hard to tell for sure; which is it?

   ---> Drake Wilson

Received on Wednesday, 20 June 2007 05:49:17 GMT

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