summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-09-19 05:11:03 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-09-19 05:11:03 (GMT)
commit6d6fb3aa9f641c133472f2bbb7565dde6e712e87 (patch)
treeffa205e229b5110979b835a46c5095cf4b75c32f /Lib/xml
parentba372a59d1fc9839a65d9ab3fef372acd4e5ee60 (diff)
downloadcpython-6d6fb3aa9f641c133472f2bbb7565dde6e712e87.zip
cpython-6d6fb3aa9f641c133472f2bbb7565dde6e712e87.tar.gz
cpython-6d6fb3aa9f641c133472f2bbb7565dde6e712e87.tar.bz2
#15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 2b0cf0c..d8ec67a 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -945,7 +945,7 @@ def _serialize_xml(write, elem, encoding, qnames, namespaces):
write(_escape_cdata(elem.tail, encoding))
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)