Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change XML-Namespace order from PHP 8.1.21 (Case 161357) (#7)
The Update to PHP 8.1.21 apparently changes the search order for defined namespaces during the process of reconciliation, resulting in finding the namespace having the prefix 'html' prior to the default one without prefix, as the search seems to start from the last defined prefix now. This results in DOMElements getting a wrong prefix while being appended to another element using `appendChild()` e.g. in `BaseParsingHelper::dump()`. This is definitely a supposition, as we do not get everything completely what happens in the corresponding commits - php/php-src@b1d8e24 (https://bugs.php.net/bug.php?id=67440) - php/php-src@b30be40 (https://bugs.php.net/bug.php?id=55294) but it perfectly matches our observation that changing the namespace order fixes several bugs and tests in various private projects of ours.
- Loading branch information