Commits

Fred Drake  committed 32b8c5a

Paul Prescod <paul@prescod.net>:
Correct the chaining between siblings.

  • Participants
  • Parent commits ef1f473
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/xml/dom/minidom.py

             newChild.parentNode = self
 
     def appendChild(self, node):
+        if self.childNodes:
+            last = self.lastChild
+            node.previousSibling = last
+            last.nextSibling = node
+        else:
+            node.previousSibling = None
+        node.nextSibling = None
         self.childNodes.append(node)
         return node