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

Re: Some bug report on markup-validator

From: David Håsäther <hasather@gmail.com>
Date: Tue, 23 Jan 2007 21:29:43 +0100
Message-ID: <45B67037.2060903@gmail.com>
To: Rui del-Negro <w3validator@dvd-hq.info>
CC: www-validator@w3.org

On 2007-01-23 21:17, Rui del-Negro wrote:

> While I agree that there's little or no reason these days to
> comment-out code, I don't think it makes much sense to assume that a
> comment has ended just because a "--i" sequence is encountered. Last
> time I checked, "i" is not the character used to close tags.

No, but in SGML the string "--" ends a comment inside a comment 
declaration. XML also disallows "--" for compatibility reasons.

> Does this mean the "--" sequence cannot exist inside comments?

Yes, see the production for a comment:

   [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

-- 
David Håsäther
Received on Tuesday, 23 January 2007 20:29:58 GMT

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