[issue17410] Generator-based HTMLParser

Ezio Melotti report at bugs.python.org
Wed Mar 13 20:08:40 CET 2013


Ezio Melotti added the comment:

Well, I'm not sure what's the point of implementing that specific algorithm if the end result is the same.  HTMLParser implementation also has the advantage of being much simpler, and probably faster too.  If for some reason you want that specific algorithm you can always use html5lib.
Also if you find places where HTMLParser is not doing the right thing you can report new issues (I know a few corner cases where this happens, but they are so obscure that I intentionally left them unfixed to keep the code simple).

----------

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


More information about the Python-bugs-list mailing list