Issue 1442874: handling comments with markupbase and HTMLParser (original) (raw)
Logged In: YES user_id=764593
I recommend this as a wontfix.
As the page itself notes, browsers generally got this
wrong, and existing webpages rely on this buggy behavior.
Even today, Opera is going back and forth on how right they
can afford to be without breaking too many pages.
The suggestion at the bottom of the page notes that if you keep your comments sane, you won't have problems on your own pages. Realistically, anything not following that rule (no embedded -- or >) is effectively buggy, and HTMLParser can only guess at the real intention.