commit | 19aff0c90a1632fce527d7c81769ba419184700c | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 17:10:46 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 17:10:46 2008 +0000 |
tree | ca3941db3a16a3ebd33991d66242d9f9ec5326c3 | |
parent | 8887e548674d34da0a9e025e68a1f55ff57a8752 [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 40e39f8..ae96033 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):