W3cubDocs

/PHP

The Dom\ParentNode interface

Introduction

(PHP 8 >= 8.4.0)

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

Interface synopsis

interface Dom\ParentNode {
/* Methods */
public append(Dom\Node|string ...$nodes): void
public prepend(Dom\Node|string ...$nodes): void
public querySelector(string $selectors): ?Dom\Element
public querySelectorAll(string $selectors): Dom\NodeList
public replaceChildren(Dom\Node|string ...$nodes): void
}

Table of Contents

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.dom-parentnode.php