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

problem validation

From: mihai puscasu <herodesh@gmail.com>
Date: Tue, 31 Jul 2007 12:04:10 +0300
Message-ID: <16a13b810707310204k72d64949l9cc1b5aea16025aa@mail.gmail.com>
To: "www-validator@w3.org" <www-validator@w3.org>
Hi,
I am Mihai Puscasu from Romania.
I find a problem that occurred with the java script codes.

this is the javascript code:

<script type="text/javascript">
        for (i=3; i<= <?=$_SESSION['posturi']['nr_raspunsuri']; ?>; i++)
        {
          document.getElementById("n_"+i).style.display="";
        }
      </script>

at the validation i get this error which is not actually an error:


   1. [image: Error] *Line 51, Column 16*: XML Parsing Error: StartTag:
   invalid element name.

       for (i=3; i<*=*nr; i++)

   2. [image: Error] *Line 53, Column 19*: XML Parsing Error: StartTag:
   invalid element name.

       for (k=++nr; k<*=*10; k++)



i think you should do something with scripts between <script
type="text/javascript">
this is an annoying error which is not an error!

Thanks for your time!

-- 
www.bangyourbrain.com - Bangyourbrain - The metal webzie.
Received on Tuesday, 31 July 2007 12:19:33 GMT

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