Re: Javascript Inequalities

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 UTC