W3C home > Mailing lists > Public > www-validator@w3.org > March 2002

Hyphens in comments

From: Olaf Buddenhagen <olafbuddenhagen@gmx.net>
Date: Thu, 14 Mar 2002 17:20:25 -0500 (EST)
To: www-validator@w3.org
Message-ID: <20020314231921.A14122@sky.local.org>
Hi,

The HTML 4.01 standard says:

   A common error is to include a string of hyphens ("---") within a
   comment. Authors should avoid putting two or more adjacent hyphens
   inside comments.

(Section 3, "SGML and HTML)

However, the validator doesn't complain about constructs like:

   <!-------------->

in HTML mode. Now I wonder: *Is* that allowed, or is it not?...

-Olaf-

-- 
Don't buy away your freedom -- GNU/Linux
Received on Thursday, 21 March 2002 02:19:22 GMT

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