[issue13960] Handling of broken comments in HTMLParser

Ezio Melotti report at bugs.python.org
Mon Feb 13 15:15:00 CET 2012


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

I now backported this to 2.7, together with some improvements in the handling of declarations that I committed on 3.2 (4c4ff9fd19b6) and 3.3 (06a6fed0da56).
Apparently <!> is not a valid comment in HTML5, but it is considered a bogus comment and should still emit a "comment" with no content.  This is now fixed too.

----------
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13960>
_______________________________________


More information about the Python-bugs-list mailing list