Clear siblings, now that they are being set.
This commit is contained in:
parent
d5fd45ffa5
commit
4221ff0ee1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue