PHP 8.6.0 Alpha 2 available for testing

L'interface Dom\ParentNode

(PHP 8 >= 8.4.0)

Introduction

Ceci est l'équivalent moderne et conforme aux spécifications de DOMParentNode.

Sommaire de l'Interface

interface Dom\ParentNode {
/* Propriétés */
public readonly Dom\HTMLCollection $children;
/* Méthodes */
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
}

Propriétés

children
Une Dom\HTMLCollection contenant tous les éléments enfants de ce nœud. Disponible à partir de PHP 8.5.0.

Sommaire

add a note

User Contributed Notes

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