[New-bugs-announce] [issue16963] module html.parser HTMLParser's strict mode don't work

sean report at bugs.python.org
Mon Jan 14 13:54:15 CET 2013


New submission from sean:

NOTE: SAME AS Python 3.2.2, Python 3.3 from python.org/download

Python 3.2.2 Stackless 3.1b3 060516 (default, Feb 20 2012, 13:36:12) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from html.parser import HTMLParser
>>> class LooseParser(HTMLParser):
	def __init__(self, strict=False):
		HTMLParser.__init__(self, strict=strict)
	def handle_starttag(self, tag, attrs):
		print('Tag:', tag)

		
>>> p = LooseParser()
>>> p.feed('<p>hello</p>')
>>>

----------
components: Library (Lib)
messages: 179938
nosy: pysean
priority: normal
severity: normal
status: open
title: module html.parser HTMLParser's strict mode don't work
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list