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 <[email protected]>
<http://bugs.python.org/issue15970>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com