insert_before method
insert_before
Inserts the node before the existing child node child. If child is null, insert node at the end of the list of children. If child is a DocumentFragment object, all of its children are inserted, in the same order, before child. If the child is already in the tree, it is first removed.
Returns
Returns inserted node
def insert_before(self, node, child):
...
Parameter | Type | Description |
---|---|---|
node | aspose.html.dom.Node | The new child. |
child | aspose.html.dom.Node | The ref child. |
See Also
- module
aspose.html
- class
HTMLStyleElement
- class
Node