[php-src] PR #11627: Fix GH-11625: DOMElement::replaceWith() doesn't replace node with DOM…

From: Date: Fri, 07 Jul 2023 21:31:15 +0000
Subject: [php-src] PR #11627: Fix GH-11625: DOMElement::replaceWith() doesn't replace node with DOM…
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22944@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11627 Author: nielsdos …DocumentFragment but just deletes node or causes wrapping <></> depending on libxml2 version Depending on the libxml2 version, the behaviour is either to not render the fragment correctly, or to wrap it inside <></>. Fix it by unpacking fragments manually. This has the side effect that we need to move the unlinking check in the replacement function to earlier because the empty child list is now possible in non-error cases. Also fixes a mistake in the linked list management.

« previous php.git-pulls (#22944) next »