[DOC-CVS] [doc-en] master: ext/dom: Document Dom\Element::$outerHTML property (PHP 8.5) (#5676)
[email protected] (Louis-Arnaud via GitHub) Sun, 12 Jul 2026 08:26:54 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-07-12T10:26:51+02:00
Commit: https://github.com/php/doc-en/commit/9a5e44a0cadb280477b8341294db85c215eea827
Raw diff: https://github.com/php/doc-en/commit/9a5e44a0cadb280477b8341294db85c215eea827.diff
ext/dom: Document Dom\Element::$outerHTML property (PHP 8.5) (#5676)
* feat(dom): ajoute Dom\Element::$outerHTML et note insertAdjacentHTML (PHP 8.5)
* dom: outerHTML is writable, not readonly (aligns with innerHTML)
Changed paths:
M reference/dom/dom/dom-element.xml
Diff:
diff --git a/reference/dom/dom/dom-element.xml b/reference/dom/dom/dom-element.xml
index 3df5455fb903..74326834bd50 100644
--- a/reference/dom/dom/dom-element.xml
+++ b/reference/dom/dom/dom-element.xml
@@ -126,6 +126,11 @@
<type>string</type>
<varname linkend="dom-element.props.innerhtml">innerHTML</varname>
</fieldsynopsis>
+ <fieldsynopsis>
+ <modifier>public</modifier>
+ <type>string</type>
+ <varname linkend="dom-element.props.outerhtml">outerHTML</varname>
+ </fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
@@ -237,6 +242,15 @@
<simpara>The inner HTML (or XML for XML documents) of the element.</simpara>
</listitem>
</varlistentry>
+ <varlistentry xml:id="dom-element.props.outerhtml">
+ <term><varname>outerHTML</varname></term>
+ <listitem>
+ <simpara>
+ The outer HTML (or XML for XML documents) of the element, including the
+ element itself. Available as of PHP 8.5.0.
+ </simpara>
+ </listitem>
+ </varlistentry>
<varlistentry xml:id="dom-element.props.substitutednodevalue">
<term><varname>substitutedNodeValue</varname></term>
<listitem>