]> granicus.if.org Git - python/commitdiff
Added Node.isSameNode() support.
authorFred Drake <fdrake@acm.org>
Fri, 2 Feb 2001 19:40:19 +0000 (19:40 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 2 Feb 2001 19:40:19 +0000 (19:40 +0000)
Lib/xml/dom/minidom.py

index 9c18fb2af3d50d488381bd503e817deca818203e..1b69fac9484e3b2538cd36ae588c705548d5364f 100644 (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: