The Dom\ParentNode interface
(PHP 8 >= 8.4.0)
Introduction
This is the modern, spec-compliant equivalent of DOMParentNode.
Interface synopsis
interface Dom\ParentNode {
/* Properties */
/* Methods */
}Properties
childrenA Dom\HTMLCollection containing all child elements of this node. Available as of PHP 8.5.0.
Table of Contents
- Dom\ParentNode::append — Appends nodes after the last child node
- Dom\ParentNode::prepend — Prepends nodes before the first child node
- Dom\ParentNode::querySelector — Returns the first element that matches the CSS selectors
- Dom\ParentNode::querySelectorAll — Returns a collection of elements that match the CSS selectors
- Dom\ParentNode::replaceChildren — Replace children in node
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
