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

Re: Error on -- in a comment

From: David Dorward <david@dorward.me.uk>
Date: Thu, 3 Apr 2008 14:20:08 +0100
Message-Id: <85217564-EC16-405E-A77A-ED83A2B89DCA@dorward.me.uk>
Cc: <www-validator@w3.org>
To: vincent RABOT <vrabot@hotmail.com>


On 3 Apr 2008, at 09:06, vincent RABOT wrote:
>
> <!--[if lte IE 6]>

<! starts the comment declaration.
-- delimits the comment, in this instance it starts the comment

> <div id="A1949 class="boite boite_F " style="width:34.5mm; height: 
> 46.5mm; left:158.25mm; top:324.25mm;" title="NGUYEN--RABOT ;  2001">

-- delimits the comment, in this instance it ends the comment
RABOT is therefore inside the comment declaration and outside the  
comment, which is an error.


"Authors should avoid putting two or more adjacent hyphens inside  
comments."
  -- http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4



-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Thursday, 3 April 2008 13:21:06 GMT

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