Skip to content

Commit b97d812

Browse files
committed
Address review comments
1 parent 298a20f commit b97d812

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Lib/xml/dom/minidom.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232

3333

3434
class Node(xml.dom.Node):
35-
"""Define properties accessible on a DOM node."""
35+
"""Base class representing a node in the DOM tree.
36+
Provides core properties and methods that all DOM nodes must implement.
37+
"""
3638
namespaceURI = None # this is non-null only for elements and attributes
3739
parentNode = None
3840
ownerDocument = None
@@ -84,11 +86,11 @@ def _get_lastChild(self):
8486
def insertBefore(self, newChild, refChild):
8587
"""Insert a new DOM Node before an existing Node.
8688
87-
https://dom.spec.whatwg.org/#dom-node-insertbefore
88-
The insertBefore(node, child) method, when invoked,
89-
must return the result of pre-inserting node into
90-
this before child.
91-
See also https://dom.spec.whatwg.org/#concept-node-pre-insert
89+
newChild
90+
The new node to insert
91+
refChild
92+
The existing node that will be the next sibling of newChild.
93+
If None, newChild is appended to the end.
9294
"""
9395
if newChild.nodeType == self.DOCUMENT_FRAGMENT_NODE:
9496
for c in tuple(newChild.childNodes):

0 commit comments

Comments
 (0)