[issue6191] HTMLParser attribute parsing - 2 test cases when it fails
report at bugs.python.org
Thu Jun 4 23:42:55 CEST 2009
Georg Brandl <georg at python.org> added the comment:
> Throwing an exception and giving up is just not good enough.
Yes it is, in some cases. There are "forgiving" HTML parsers out there,
HTMLParser does not strive to be one.
There are *so many* cases where HTML is a bit malformed that it takes
more than just two exceptions to get it right. It's for a reason that
browsers' parsers are so complex. If you add these corner cases, people
will come asking for this exception, and that one, etc.
status: open -> pending
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list