Comments using two minus characters in tags are ignored correctly. The following examples were taken from www-dom@w3.org.

center me! (no, don't!)

Heading

The correct rendering of the above HTML would be nothing (the comment is illegal html/xml) which would make a fair number of quirky Web pages disappear.