summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-02-23 17:10:46 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-02-23 17:10:46 (GMT)
commit19aff0c90a1632fce527d7c81769ba419184700c (patch)
treeca3941db3a16a3ebd33991d66242d9f9ec5326c3 /Lib/xml
parent8887e548674d34da0a9e025e68a1f55ff57a8752 (diff)
downloadcpython-19aff0c90a1632fce527d7c81769ba419184700c.zip
cpython-19aff0c90a1632fce527d7c81769ba419184700c.tar.gz
cpython-19aff0c90a1632fce527d7c81769ba419184700c.tar.bz2
#1433694: minidom's .normalize() failed to set .nextSibling for last element.
Fix by Malte Helmert
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/dom/minidom.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 40e39f8..ae96033 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -203,6 +203,8 @@ class Node(xml.dom.Node):
L.append(child)
if child.nodeType == Node.ELEMENT_NODE:
child.normalize()
+ if L:
+ L[-1].nextSibling = None
self.childNodes[:] = L
def cloneNode(self, deep):