From 4221ff0ee1c6af843e11f8bb143850102b64e0c7 Mon Sep 17 00:00:00 2001 From: Paul Prescod Date: Fri, 13 Oct 2000 20:11:42 +0000 Subject: Clear siblings, now that they are being set. --- Lib/xml/dom/minidom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 6dc3a52..00bd4ca 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -136,6 +136,8 @@ class Node: self.childNodes[-1].unlink() del self.childNodes[-1] # probably not most efficient! self.childNodes = None + self.previousSibling = None + self.nextSibling = None if self.attributes: for attr in self._attrs.values(): self.removeAttributeNode(attr) -- cgit v0.12