Commit a1056cc5 authored by Fred Drake's avatar Fred Drake

Paul Prescod <paul@prescod.net>:

Correct the chaining between siblings.
parent 8398b1a3
......@@ -102,6 +102,13 @@ class Node:
newChild.parentNode = self
def appendChild(self, node):
if self.childNodes:
last = self.lastChild
node.previousSibling = last
last.nextSibling = node
else:
node.previousSibling = None
node.nextSibling = None
self.childNodes.append(node)
return node
......
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