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

Re: [VE][388] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 12 May 2006 23:40:58 +0300 (EEST)
To: Jan Christian Anker <jc.anker@anker-zemer.no>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0605122338090.11189@korppi.cs.tut.fi>

On Fri, 12 May 2006, Jan Christian Anker wrote:

> The following line in my HTML-coding results in a bunch of
> WARNING messages (i.e. no error, but annoyance)
> <!-- ----------------- Text etc goes here ----------------- -->
> The following line validates just fine:
> <!-- _________________ Text etc goes here _________________ -->

So what's the problem? Why don't you use the latter?

The validator warns about the former, since there is a high risk of using 
a wrong number of hyphens and getting wrong results on browsers and other 
software that process comments correctly.

(On the other hand, why don't you just remove the comment? If your HTML 
markup "needs" a comment, the odds are that it is too artificial and 
should be restructured. Comments considered harmful.)

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 12 May 2006 20:41:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:48 UTC