mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Added Node.isSameNode() support.
This commit is contained in:
parent
0399bd8ce2
commit
2523977fb2
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue