Added Node.isSameNode() support.

This commit is contained in:
Fred Drake 2001-02-02 19:40:19 +00:00
parent 0399bd8ce2
commit 2523977fb2
1 changed files with 7 additions and 0 deletions

View File

@ -218,6 +218,13 @@ class Node(_Node):
clone.appendChild(child.cloneNode(1))
return clone
# DOM Level 3 (Working Draft 2001-Jan-26)
def isSameNode(self, other):
return self is other
# minidom-specific API:
def unlink(self):
self.parentNode = None
for child in self.childNodes: