commit | 05a19a507d8ef57f24d713dd29dcc79494705d18 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 17:21:44 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 17:21:44 2008 +0000 |
tree | 538c4067928888053593b3469b0d7add4e8a16f1 | |
parent | be0adfcfa8327b68fed6158fe423656289a870cc [diff] [blame] |
#1433694: minidom's .normalize() failed to set .nextSibling for last element. Fix by Malte Helmert
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 3a35781..b94a4c7 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py
@@ -203,6 +203,8 @@ L.append(child) if child.nodeType == Node.ELEMENT_NODE: child.normalize() + if L: + L[-1].nextSibling = None self.childNodes[:] = L def cloneNode(self, deep):