W3C home > Mailing lists > Public > www-validator@w3.org > February 2011

Validation confusion

From: Oliver Snyder <ohsnyder@live.com>
Date: Sun, 20 Feb 2011 12:44:53 -0500
Message-ID: <SNT120-DS190DFA397ECBC2FEBE9BE7B3D60@phx.gbl>
To: <www-validator@w3.org>
On my web site I have a form that uses JS to perform a math computation.  When validating I get the following error:

  1.. Line 127, Column 43: character "<" is the first character of a delimiter but occurred as data 
  while(num.length - num.indexOf(".") - 1 < ✉ 

  This message may appear in several cases: 

    a.. You tried to include the "<" character in your page: you should escape it as "&lt;" 
    b.. You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe. 
    c.. Another possibility is that you forgot to close quotes in a previous tag. 
  2..  Line 127, Column 43: StartTag: invalid element name 
  while(num.length - num.indexOf(".") - 1 < The problem is that you cannot replace a “Math” function “ < “ with “ "&lt;"   a have it do the math.Is there a work around for this issue ?Oliver Snyder 
Received on Sunday, 20 February 2011 21:28:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:03 UTC