Ezio Melotti <ezio.melo...@gmail.com> added the comment: Attached a new patch with a few more tests and a simplification of the attrfind regex.
> But it allows the passage of an invalid code in strict mode. HTMLParser is following the HTML5 specs, and doesn't do validation, so there's no strict mode (and the strict mode of Python 3 will be removed/deprecated soon). > I think, this problem can be solved by a more direct way, > perhaps even simplifying the original code. This might be true, but I'm quite happy with this patch for now. Maybe one day I'll rewrite it. > Unless there is a specification somewhere (or at least an editor's > draft), I can't really see any particular parse as a bugfix. If HTMLParser doesn't parse as the HTML5 specs say, then it's considered a bug. ---------- Added file: http://bugs.python.org/file25200/issue14538-2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com