DOMParentNode::prepend
Prepends nodes before the first child node
&reftitle.description;
public voidDOMParentNode::prepend
DOMNodestringnodes
Prepends one or many nodes to the list of children before the first child node.
&reftitle.parameters;
nodes
The nodes to prepend.
Strings are automatically converted to text nodes.
&reftitle.returnvalues;
&return.void;
&reftitle.errors;
&dom.errors.hierarchy.self;
&dom.errors.wrong_document;
&reftitle.changelog;
&Version;
&Description;
8.3.0
Calling this method on a node without an owner document now works.
&dom.changelog.previous_hierarchy_exception;
&reftitle.seealso;
DOMParentNode::append