From 2523977fb214c48284aacb5e774908b0629d7bb5 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 2 Feb 2001 19:40:19 +0000 Subject: [PATCH] Added Node.isSameNode() support. --- Lib/xml/dom/minidom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 9c18fb2af3d..1b69fac9484 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -218,6 +218,13 @@ def cloneNode(self, deep): 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: