|
32 | 32 |
|
33 | 33 |
|
34 | 34 | classNode(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 | + """ |
36 | 38 | namespaceURI=None# this is non-null only for elements and attributes
|
37 | 39 | parentNode=None
|
38 | 40 | ownerDocument=None
|
@@ -84,11 +86,11 @@ def _get_lastChild(self):
|
84 | 86 | definsertBefore(self,newChild,refChild):
|
85 | 87 | """Insert a new DOM Node before an existing Node.
|
86 | 88 |
|
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. |
92 | 94 | """
|
93 | 95 | ifnewChild.nodeType==self.DOCUMENT_FRAGMENT_NODE:
|
94 | 96 | forcintuple(newChild.childNodes):
|
|