[issue12629] HTMLParser silently stops parsing with malformed attributes

Kevin Stock report at bugs.python.org
Sun Jul 24 20:35:07 CEST 2011


New submission from Kevin Stock <teoryn at gmail.com>:

Given the input '<x><y z=""o"" /></x>', HTMLParser only detects the opening x tag, and then stops parsing. Ideally this should behave like the case '<x><y z="""" /></x>' which raises an error and then can continue parsing the close x tag.

----------
components: Library (Lib)
files: test.py
messages: 141051
nosy: teoryn
priority: normal
severity: normal
status: open
title: HTMLParser silently stops parsing with malformed attributes
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22745/test.py

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


More information about the Python-bugs-list mailing list