[php-src] PR #11299: Fix GH-11288 and GH-11289: DOMException with replaceWith
| From: | nielsdos | Date: | Mon, 22 May 2023 22:05:56 +0000 |
| Subject: | [php-src] PR #11299: Fix GH-11288 and GH-11289: DOMException with replaceWith | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22565@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11299
Author: nielsdos
This replaces the implementation of before and after with one following the spec very strictly,
instead of trying to figure out the state we're in by looking at the pointers. Also relaxes the
condition on text node copying to prevent working on a stale node pointer.