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

Re: W3C HTML validator is broken

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Thu, 25 Jan 2007 13:15:17 +0000
Message-ID: <45B8AD65.701@Rhul.Ac.Uk>
To: David Dorward <david@dorward.me.uk>
CC: bkml <atoz0to9@fastmail.fm>, www-validator@w3.org

I seem able to replicate this :

110 dashes OK, 120 bad, end must match beginning.

See http://training.rhul.ac.uk/Comments-1.html (-2.html, -3.html)

The first has 120 + 120, the second 110 + 120 and the third 110 + 110.

Philip Taylor
--------
David Dorward wrote:
> 
> On Thu, Jan 25, 2007 at 06:55:58PM +0900, bkml wrote:
> 
>  > If line 1 of the comment exceeds 110 dashes, the validator reports 
>  > the 111th dash as an error.
> 
> You didn't state what error you were getting, but I can't get the
> validator to anything that I find unexpected. However, dealing with
> dashes inside comments is a pain, I suggest taking the advice of the
> specification:
> 
>     "Authors should avoid putting two or more adjacent hyphens inside
>      comments."
> 
> http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
>  
>  > What's weirder than that is the fact that the closing line (line 3) 
>  > has to have exactly the same number of dashes as the opening line or 
>  > else the validator reports an error in whichever line follows.
> 
> I can't reproduce this. My tests show it just has to close an opened
> comment. So <!------ foo --> is valid (but <!------ foo ----> never
> closes the final comment).
> 
> -- 
> David Dorward                                      http://dorward.me.uk
> 
Received on Thursday, 25 January 2007 13:15:40 GMT

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