cpython/Lib/xml/dom
Miss Islington (bot) 8cfbf3c3f1
[3.15] gh-156658: Only XML white space characters are treated as white space (GH-156659) (GH-156825)
XML defines white space as " \t\r\n" (see XML 1.0, 2.3), but str.strip()
also strips other characters, such as U+00A0.  Such characters could be
lost in ElementTree.indent(), in canonicalize(strip_text=True), and when
parsing with the whitespace-in-element-content feature turned off.
(cherry picked from commit e7c93b7e5c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-10-10 09:53:39 +00:00
..
__init__.py gh-120417: Add #noqa to used imports in the stdlib (#120421) 2024-06-13 16:14:50 +02:00
domreg.py bpo-34791: xml package obeys ignore env flags (GH-9544) 2018-09-24 10:21:12 -07:00
expatbuilder.py [3.15] gh-156658: Only XML white space characters are treated as white space (GH-156659) (GH-156825) 2026-10-10 09:53:39 +00:00
minicompat.py Issue #10131: Fixed deep copying of minidom documents. Based on patch 2015-11-26 23:49:42 +02:00
minidom.py [3.15] gh-156658: Only XML white space characters are treated as white space (GH-156659) (GH-156825) 2026-10-10 09:53:39 +00:00
NodeFilter.py
pulldom.py [3.15] gh-156839: Fix inaccuracies in the xml.dom.pulldom documentation (GH-156840) (#156845) 2026-09-03 06:53:13 +01:00
xmlbuilder.py gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) 2025-01-07 12:40:41 +02:00