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

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


New submission from Manuel Bärenz <manuel at enigmage.de>:

I've attached a script which demonstrates the bug.

When feeding a <script> that contains a comment tag with the actual script and the script containing tags itself (e.g. a 'document.write(<td></td>)'), the parser doesn't call handle_comment and handle_starttag.

----------
components: Library (Lib)
files: htmlparserbug.py
messages: 150603
nosy: turion
priority: normal
severity: normal
status: open
title: html.parser.HTMLParser doesn't parse tags in comments in scripts correctly
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file24137/htmlparserbug.py

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


More information about the New-bugs-announce mailing list