Skip to content

Document Dom\Element::$outerHTML property (PHP 8.5)#5676

Open
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:feat/dom-element-outerhtml-insertadjacenthtml-85
Open

Document Dom\Element::$outerHTML property (PHP 8.5)#5676
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:feat/dom-element-outerhtml-insertadjacenthtml-85

Conversation

@lacatoire

Copy link
Copy Markdown
Member

PHP 8.5 adds the Dom\Element::$outerHTML virtual property. Documents it in the class synopsis and property list.

Verified against php-src: ext/dom/php_dom.stub.php declares public string $outerHTML; (@virtual, no readonly), and ext/dom/php_dom.c registers both dom_element_outer_html_read and dom_element_outer_html_write handlers, so the property is writable (mirrors innerHTML).

@lacatoire lacatoire requested a review from ndossche as a code owner July 11, 2026 19:37

@ndossche ndossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants