#15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".

This commit is contained in:
Ezio Melotti 2012-09-19 08:19:12 +03:00
parent ab02db23b1
commit c90111f9ab
3 changed files with 24 additions and 1 deletions

View file

@ -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)