Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2523977

Browse files
committed
Added Node.isSameNode() support.
1 parent 0399bd8 commit 2523977

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/xml/dom/minidom.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@ def cloneNode(self, deep):
218218
clone.appendChild(child.cloneNode(1))
219219
return clone
220220

221+
# DOM Level 3 (Working Draft 2001-Jan-26)
222+
223+
def isSameNode(self, other):
224+
return self is other
225+
226+
# minidom-specific API:
227+
221228
def unlink(self):
222229
self.parentNode = None
223230
for child in self.childNodes:

0 commit comments

Comments
 (0)