]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150595)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 29 May 2026 21:48:10 +0000 (00:48 +0300)
committerGitHub <noreply@github.com>
Fri, 29 May 2026 21:48:10 +0000 (21:48 +0000)
commit2f9131575b611dfc749242e8bbc6805bbc14683b
treea12cb47ba30bcddd8ad02666cb1ea092733af8b2
parent863c7e0f9f9d72b8a2b87759b1ab51a0c4293de9
[3.15] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150595)

* The content of comments, processing instructions and elements "xmp",
  "iframe", "noembed", "noframes", and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.
* Add support of empty attributes (with value None).
(cherry picked from commit bcd29e466f55d8b4e3849ed6ada8ce86a46f5072)
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2026-05-07-14-18-47.gh-issue-149489.bX9iHe.rst [new file with mode: 0644]