summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-02 19:40:19 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-02 19:40:19 (GMT)
commit2523977fb214c48284aacb5e774908b0629d7bb5 (patch)
tree3139f2d244319d4f1ce17197732d3daf0aa69363 /Lib
parent0399bd8ce214420680a5f359ea996d8c07a2cda6 (diff)
downloadcpython-2523977fb214c48284aacb5e774908b0629d7bb5.zip
cpython-2523977fb214c48284aacb5e774908b0629d7bb5.tar.gz
cpython-2523977fb214c48284aacb5e774908b0629d7bb5.tar.bz2
Added Node.isSameNode() support.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xml/dom/minidom.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 9c18fb2..1b69fac 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -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: