diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-19 05:19:12 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-19 05:19:12 (GMT) |
commit | c90111f9ab617a1dbdde8952a4b81e6eecc36e7c (patch) | |
tree | 30cfe26e68b81949199bb5a2166ad3641b3579a0 /Lib/xml/etree/ElementTree.py | |
parent | ab02db23b1032c7b1fcf7063ae736b25e4466624 (diff) | |
download | cpython-c90111f9ab617a1dbdde8952a4b81e6eecc36e7c.zip cpython-c90111f9ab617a1dbdde8952a4b81e6eecc36e7c.tar.gz cpython-c90111f9ab617a1dbdde8952a4b81e6eecc36e7c.tar.bz2 |
#15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index f94c48c..9742f32 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -983,7 +983,7 @@ def _serialize_xml(write, elem, qnames, namespaces): write(_escape_cdata(elem.tail)) HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr", - "img", "input", "isindex", "link", "meta" "param") + "img", "input", "isindex", "link", "meta", "param") try: HTML_EMPTY = set(HTML_EMPTY) |