Commit 6cf51920 authored by Paul Prescod's avatar Paul Prescod

Clear siblings, now that they are being set.

parent 9288dcd0
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment