From ecfc7413ef4e97715e0997af647d6daa23b92b67 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Sun, 12 Jul 2026 12:21:07 +0200 Subject: [PATCH] Document the new Dom\ParentNode $children property (PHP 8.5) Add the read-only $children property (Dom\HTMLCollection) to Dom\ParentNode and its implementations Dom\Element, Dom\Document and Dom\DocumentFragment. The property is defined once on Dom\ParentNode and referenced through a local anchor in each implementing class, matching the other ParentNode properties. --- reference/dom/dom/dom-document.xml | 11 +++++++++++ reference/dom/dom/dom-documentfragment.xml | 11 +++++++++++ reference/dom/dom/dom-element.xml | 11 +++++++++++ reference/dom/dom/dom-parentnode.xml | 23 ++++++++++++++++++++++ 4 files changed, 56 insertions(+) diff --git a/reference/dom/dom/dom-document.xml b/reference/dom/dom/dom-document.xml index 0c472d5de5e4..1f1f7b1e1015 100644 --- a/reference/dom/dom/dom-document.xml +++ b/reference/dom/dom/dom-document.xml @@ -104,6 +104,12 @@ int childElementCount + + public + readonly + Dom\HTMLCollection + children + public Dom\HTMLElementnull @@ -210,6 +216,11 @@ + + + + + body diff --git a/reference/dom/dom/dom-documentfragment.xml b/reference/dom/dom/dom-documentfragment.xml index 1c5b8390a8e6..6b3b5c1dc2d5 100644 --- a/reference/dom/dom/dom-documentfragment.xml +++ b/reference/dom/dom/dom-documentfragment.xml @@ -60,6 +60,12 @@ int childElementCount + + public + readonly + Dom\HTMLCollection + children + &InheritedProperties; @@ -98,6 +104,11 @@ + + + + + diff --git a/reference/dom/dom/dom-element.xml b/reference/dom/dom/dom-element.xml index 3df5455fb903..d3cd6aa54ac3 100644 --- a/reference/dom/dom/dom-element.xml +++ b/reference/dom/dom/dom-element.xml @@ -121,6 +121,12 @@ Dom\Elementnull nextElementSibling + + public + readonly + Dom\HTMLCollection + children + public string @@ -231,6 +237,11 @@ + + + + + innerHTML diff --git a/reference/dom/dom/dom-parentnode.xml b/reference/dom/dom/dom-parentnode.xml index 2fb3a0dbe350..a5c48b75f04f 100644 --- a/reference/dom/dom/dom-parentnode.xml +++ b/reference/dom/dom/dom-parentnode.xml @@ -21,6 +21,14 @@ Dom\ParentNode + &Properties; + + public + readonly + Dom\HTMLCollection + children + + &Methods; @@ -29,6 +37,21 @@ +
+ &reftitle.properties; + + + children + + + A Dom\HTMLCollection containing all child + elements of this node. Available as of PHP 8.5.0. + + + + +
+ &reference.dom.dom.entities.parentnode;