W3C home > Mailing lists > Public > www-validator@w3.org > April 2008

Error on -- in a comment

From: vincent RABOT <vrabot@hotmail.com>
Date: Thu, 3 Apr 2008 08:06:12 +0000
Message-ID: <BAY105-W55C197F19068F91B08EA8CD3F70@phx.gbl>
To: <www-validator@w3.org>

Hello
 
In a xhtml beginning :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
If I have this :
<!--[if lte IE 6]>
<div id="A1949 class="boite boite_F " style="width:34.5mm; height:46.5mm; left:158.25mm; top:324.25mm;" title="NGUYEN--RABOT ; ° 2001">
<![endif]-->
Validator says :
1. Line 1638, Column 124: invalid comment declaration: found name start character outside comment but inside comment declaration.
…25mm; top:324.25mm;" title="NGUYEN--RABOT Elodie Phuong-Lan Angélique &#13;
2. Line 1637, Column 0: comment declaration started here.
<!--[if lte IE 6]>
3. Line 1639, Column 5: "endif" is not a reserved name.
<![endif]-->
If I write this :
<!--[if lte IE 6]>
<div id="A1949 class="boite boite_F " style="width:34.5mm; height:46.5mm; left:158.25mm; top:324.25mm;" title="NGUYEN-/-RABOT ; ° 2001">
<![endif]-->
Validator is OK
Regards
Vincent Rabot
Received on Thursday, 3 April 2008 12:57:36 GMT

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