Clear siblings, now that they are being set.

This commit is contained in:
Paul Prescod 2000-10-13 20:11:42 +00:00
parent d5fd45ffa5
commit 4221ff0ee1
1 changed files with 2 additions and 0 deletions

View File

@ -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)