[issue14538] HTMLParser: parsing error

Ezio Melotti report at bugs.python.org
Fri Apr 13 08:20:33 CEST 2012

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

HTMLParser is still simpler than html5lib, but if/when possible we are following the HTML5 standard rather than taking arbitrary decisions (like we used to do before HTML5).  HTMLParser doesn't claim to be a fully compliant HTML5 parser (and probably never will) -- its goal is rather being able to parse real world HTML in the same way browsers do.  There are also a couple of corner cases that are not implemented in HTMLParser because it would make the code too complicated for a little gain.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list