ChildNode
interface ChildNode (View source)
This is the modern, spec-compliant equivalent of DOMChildNode.
Methods
void
remove()
Removes the node
void
Details
void
remove()
Removes the node
void
before(Node|string ...$nodes)
Adds nodes before the node
Adds the passed nodes before the node.
void
after(Node|string ...$nodes)
Adds nodes after the node
Adds the passed nodes after the node.
void
replaceWith(Node|string ...$nodes)
Replaces the node with new nodes