[New-bugs-announce] [issue14538] HTMLParser

Michel Leunen report at bugs.python.org
Mon Apr 9 22:01:56 CEST 2012

New submission from Michel Leunen <michel.leunen at gmail.com>:

HTMLParser fails to parse this structure of tags: 

'<a></a><script></script><meta><meta / ><body></body>'

Parsing stops after the first meta tag ignoring the remainers

from HTMLParser import HTMLParser
parser = process_html()
parser.feed('<a></a><script></script><meta><meta / ><body></body>')

Python 2.7.2+ Ubuntu 11.10

components: Library (Lib)
messages: 157890
nosy: Michel.Leunen
priority: normal
severity: normal
status: open
title: HTMLParser
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list