[New-bugs-announce] [issue15970] ElementTree HTML serialization incorrect for <meta>, <param>
Joshua Biagio
report at bugs.python.org
Wed Sep 19 05:46:20 CEST 2012
New submission from Joshua Biagio:
There seems to be a very minor bug in the ElementTree.py file, for the so-called 'empty' elements that are serialized without a closing tag. The HTML_EMPTY tuple/set is used to lookup these tags.
In the Lib/xml/etree/ElementTree.py file, the HTML_EMPTY tuple is created like:
HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr",
"img", "input", "isindex", "link", "meta" "param")
There is a missing comma between "meta" and "param". I'm not sure if this is intended behavior.
The line should be replaced with:
HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr",
"img", "input", "isindex", "link", "meta", "param")
----------
components: Library (Lib), XML
messages: 170699
nosy: Joshua.Biagio
priority: normal
severity: normal
status: open
title: ElementTree HTML serialization incorrect for <meta>, <param>
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15970>
_______________________________________
More information about the New-bugs-announce
mailing list