File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 3232
3333
3434class 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 ):
You can’t perform that action at this time.
0 commit comments