From 7cc9d5a5b401cad9db17e5bcf376a46d3e2dbd0d Mon Sep 17 00:00:00 2001 From: lacatoire Date: Fri, 17 Jul 2026 09:52:52 +0200 Subject: [PATCH] Sync ext/dom: document the new Dom\ParentNode $children property (PHP 8.5) --- reference/dom/dom/dom-document.xml | 14 ++++++++++-- reference/dom/dom/dom-documentfragment.xml | 14 ++++++++++-- reference/dom/dom/dom-element.xml | 13 ++++++++++- reference/dom/dom/dom-parentnode.xml | 26 ++++++++++++++++++++-- 4 files changed, 60 insertions(+), 7 deletions(-) diff --git a/reference/dom/dom/dom-document.xml b/reference/dom/dom/dom-document.xml index 9cc79c9b54..338f06bb5e 100644 --- a/reference/dom/dom/dom-document.xml +++ b/reference/dom/dom/dom-document.xml @@ -1,6 +1,5 @@ - - + La classe Dom\Document Dom\Document @@ -105,6 +104,12 @@ int childElementCount + + public + readonly + Dom\HTMLCollection + children + public Dom\HTMLElementnull @@ -211,6 +216,11 @@ + + + + + body diff --git a/reference/dom/dom/dom-documentfragment.xml b/reference/dom/dom/dom-documentfragment.xml index fc93fa08bc..119afa435c 100644 --- a/reference/dom/dom/dom-documentfragment.xml +++ b/reference/dom/dom/dom-documentfragment.xml @@ -1,6 +1,5 @@ - - + La classe Dom\DocumentFragment Dom\DocumentFragment @@ -61,6 +60,12 @@ int childElementCount + + public + readonly + Dom\HTMLCollection + children + &InheritedProperties; @@ -99,6 +104,11 @@ + + + + + diff --git a/reference/dom/dom/dom-element.xml b/reference/dom/dom/dom-element.xml index c539862c00..419853e61c 100644 --- a/reference/dom/dom/dom-element.xml +++ b/reference/dom/dom/dom-element.xml @@ -1,5 +1,5 @@ - + La classe Dom\Element Dom\Element @@ -121,6 +121,12 @@ Dom\Elementnull nextElementSibling + + public + readonly + Dom\HTMLCollection + children + public string @@ -236,6 +242,11 @@ + + + + + innerHTML diff --git a/reference/dom/dom/dom-parentnode.xml b/reference/dom/dom/dom-parentnode.xml index 5ee3c5356a..06d57cca39 100644 --- a/reference/dom/dom/dom-parentnode.xml +++ b/reference/dom/dom/dom-parentnode.xml @@ -1,6 +1,5 @@ - - + L'interface Dom\ParentNode Dom\ParentNode @@ -23,6 +22,14 @@ Dom\ParentNode + &Properties; + + public + readonly + Dom\HTMLCollection + children + + &Methods; @@ -31,6 +38,21 @@ +
+ &reftitle.properties; + + + children + + + Une Dom\HTMLCollection contenant tous les éléments + enfants de ce nœud. Disponible à partir de PHP 8.5.0. + + + + +
+ &reference.dom.dom.entities.parentnode;