[issue13711] html.parser.HTMLParser doesn't parse tags in comments in scripts correctly

Ezio Melotti report at bugs.python.org
Wed Jan 4 16:02:18 CET 2012


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

Yep, this was fixed in #670664.
With the development version of Python (AFAIK the fix has not be released yet) and the example parser found in the doc[0] I get this:

>>> parser = MyHTMLParser()
>>> parser.feed('<script><td></td></script>')
Encountered a start tag: script
Encountered   some data: <td></td>
Encountered  an end tag: script


[0]: http://docs.python.org/dev/library/html.parser.html#example-html-parser-application

----------
assignee:  -> ezio.melotti
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> HTMLParser.py - more robust SCRIPT tag parsing

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


More information about the Python-bugs-list mailing list