mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
#1433694: minidom's .normalize() failed to set .nextSibling for last element.
Fix by Malte Helmert
This commit is contained in:
parent
8887e54867
commit
19aff0c90a
3 changed files with 11 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ class Node(xml.dom.Node):
|
|||
L.append(child)
|
||||
if child.nodeType == Node.ELEMENT_NODE:
|
||||
child.normalize()
|
||||
if L:
|
||||
L[-1].nextSibling = None
|
||||
self.childNodes[:] = L
|
||||
|
||||
def cloneNode(self, deep):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue