On May 9, 2006, at 20:05, Simon Pieters wrote:
Anything else
Append two U+002D HYPHEN-MINUS (-) characters and the input
character
to the comment token's data. Switch to the comment state.
...to say:
Anything else
Parse error. Append two U+002D HYPHEN-MINUS (-) characters
and the input
character to the comment token's data. Switch to the comment
state.
+1
This has two benefits:
1) Previously non-conforming syntax won't be made conforming, so
pedantic HTML 4 implementations won't break with conforming HTML5
comments.
2) Conforming HTML5 documents can be serialized as conforming
XHTML5 document without data loss even when preserving comments.
(Strictly speaking in XML processing it is legitimate to drop
comments in the bit bucket, so in that sense, dropping comments would
not be *significant* data loss. :-)
--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/