PHP 8.6.0 Alpha 2 available for testing

The Dom\ParentNode interface

(PHP 8 >= 8.4.0)

简介

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

接口摘要

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.

目录

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top