The Dom\ParentNode interface

(PHP 8 >= 8.4.0)

Вступ

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

Короткий огляд iнтерфейcу

interface Dom\ParentNode {
/* Властивості */
public readonly Dom\HTMLCollection $children;
/* Методи */
public function append(Dom\Node|string ...$nodes): void
public function prepend(Dom\Node|string ...$nodes): void
public function querySelector(string $selectors): ?Dom\Element
public function querySelectorAll(string $selectors): Dom\NodeList
public function replaceChildren(Dom\Node|string ...$nodes): void
}

Властивості

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

Зміст

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top