We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca0fda commit 8df6795Copy full SHA for 8df6795
Lib/xml/dom/minidom.py
@@ -93,6 +93,7 @@ def insertBefore(self, newChild, refChild):
93
if newChild.nodeType == self.DOCUMENT_FRAGMENT_NODE:
94
for c in tuple(newChild.childNodes):
95
self.insertBefore(c, refChild)
96
+ ### The DOM does not clearly specify what to return in this case
97
return newChild
98
if newChild.nodeType not in self._child_node_types:
99
raise xml.dom.HierarchyRequestErr(
0 commit comments