-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Andrew Garrett wrote:
Forgive me for asking the obvious, but why on Earth do we want to be able to insert HTML comments? Comments are used in markup/programming languages, and are for the benefit of those who edit the code subsequently. Of course, nobody edits the parsed HTML, at least not directly, so it doesn't make much sense to put comments in there.
Step back from implementation, and first ask "What's the use case?" Without a use case, you can't hope to think of a sensible implementation, because so much of implementation depends on how the feature is to be used.
The one case I might think of is microformats that make use of comments... but that's bad practice, since parsers can legitimately strip comments. :D
- -- brion