The Dom\ParentNode interface

Introduction

This is the modern, spec-compliant equivalent of DOMParentNode.

Interface synopsis

Dom\ParentNode
/* Properties */
public readonly Dom\HTMLCollection $children;
/* Methods */
public void Dom\ParentNode::append(Dom\Nodestring ...$nodes)
public void Dom\ParentNode::prepend(Dom\Nodestring ...$nodes)
public Dom\Elementnull Dom\ParentNode::querySelector(string $selectors)
public Dom\NodeList Dom\ParentNode::querySelectorAll(string $selectors)
public void Dom\ParentNode::replaceChildren(Dom\Nodestring ...$nodes)

Properties

children
A Dom\HTMLCollection containing all child elements of this node. Available as of PHP 8.5.0.
Table of Contents