Ezio Melotti added the comment: Thanks for the patch Thomas! Starting from your work I made an updated patch that fixes the bug, but at the same time the tests revealed another possible issue. In case of invalid character references, HTMLParser still calls handle_entityref instead of reporting them as 'data'. Not sure what the preferable behavior should be though, but anyway this is a separate issue.
---------- stage: needs patch -> patch review Added file: http://bugs.python.org/file29986/issue17802.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17802> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com