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

Manuel Bärenz report at bugs.python.org
Wed Jan 4 15:28:47 CET 2012


Manuel Bärenz <manuel at enigmage.de> added the comment:

To clarify this even further: Consider
parser_instance.feed("<script><td></td></script>")

It should call:
parser_instance.handle_starttag("script", [])
parser_instance.handle_data("<td></td>")
parser_instance.handle_endtag("script", [])

Instead, it calls:
parser_instance.handle_starttag("script", [])
parser_instance.handle_data("<td>")
parser_instance.handle_endtag("td", [])
parser_instance.handle_endtag("script", [])

----------

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


More information about the Python-bugs-list mailing list