The otherwise honourable Acid2 test dredged up something I had hoped I wouldn’t see again. Most tests are CSS tests, parsing and layout, but they also threw in an old misfeature from HTML’s past. If you look at the test’s source code you will find “ERROR”. An HTML comment followed by “ERROR”, right? No, unlike in the more modern XML ""
are not comment delimiters, “--
” is. In SGML so ERROR is actually a part of a long comment. Easy to see, isn’t it?
In theory HTML is a SGML application so SGML rules apply. In practice there has never been a SGML web browser and there never will. For a long time Opera was alone in supporting some SGML-isms like “--
” comment delimiters until we removed them around Opera 5 or 6, but Opera wasn’t even close to being a SGML browser so all we did was to add quirks and give no benefits.
Mozilla later made exactly the same mistake as we did and they are still doing it. This causes an interoperability problem as Mozilla will fail on this comment and other browsers don’t. The obvious solution would be for Mozilla to change their browser, but WaSP opted for the other option instead. If that view wins through web developers will be bound to count their hyphens. Any multiple of four is good, anything else is bad.