- From: David Håsäther <hasather@gmail.com>
- Date: Tue, 23 Jan 2007 21:29:43 +0100
- 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 UTC