commit | 4221ff0ee1c6af843e11f8bb143850102b64e0c7 | [log] [tgz] |
---|---|---|
author | Paul Prescod <prescod@prescod.net> | Fri Oct 13 20:11:42 2000 +0000 |
committer | Paul Prescod <prescod@prescod.net> | Fri Oct 13 20:11:42 2000 +0000 |
tree | 7ca94905bb9ba2cd6813b5277a648e90e0e0bae8 | |
parent | d5fd45ffa587dc2f49f94350233f4ba1427a6684 [diff] |
Clear siblings, now that they are being set.
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 @@ 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)