Re: W3C HTML validator is broken

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 UTC