W3C home > Mailing lists > Public > www-validator@w3.org > September 2006

[VE][404] Error Message Feedback

From: Matias <yuyera@gmail.com>
Date: Sat, 09 Sep 2006 14:40:16 -0300
Message-ID: <4502FC80.50305@matiascodina.com.ar>
To: www-validator@w3.org

Validating Error [404]: "character X is the first character of a 
delimiter but occurred as data"

Please, i donīt understand this error, Iīm using this javascript code:
<script type="text/javascript">
        var months=new Array(13);
        months[1]="Enero";
        months[2]="Febrero";
        months[3]="Marzo";
        months[4]="Abril";
        months[5]="Mayo";
        months[6]="Junio";
        months[7]="Julio";
        months[8]="Augosto";
        months[9]="Septiembre";
        months[10]="Octubre";
        months[11]="Noviembre";
        months[12]="Dciembre";
        var time=new Date();
        var lmonth=months[time.getMonth() + 1];
        var date=time.getDate();
        var year=time.getYear();
        if (year < 2000)   
        year = year + 1900;
        document.write(date + " de " + lmonth + " de " + year);
        </script>
The mistake appears in this line:  if (year < 2000)
My personal web page is a valid xhtml 1.0 strict.
Received on Monday, 11 September 2006 02:03:13 GMT

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