mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
#15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
This commit is contained in:
parent
ab02db23b1
commit
c90111f9ab
3 changed files with 24 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue