Skip to content

Conversation

@beberlei
Copy link
Contributor

@beberlei beberlei commented Feb 1, 2021

https://bugs.php.net/bug.php?id=80600

Problem was an erroreous check if child was valid to have child nodes, but the check must be made for the parents. Also cleans up code duplication between PHP_METHOD(DOMCharacterData, remove) and dom_child_node_remove.

@beberlei
Copy link
Contributor Author

beberlei commented Feb 1, 2021

Ping @cmb69

@beberlei beberlei force-pushed the bug80600-domchildnode-remove branch from a3d8030 to 99b9ef5 Compare February 2, 2021 19:23
@php-pulls php-pulls closed this in 665e1f3 Feb 2, 2021
@kocsismate
Copy link
Member

kocsismate commented Feb 3, 2021

@beberlei The test you added fails for me on master on my Mac (2019 MBP):

001+ <a><!-- foo --></a>
001- <a/>

I saw that it passes in CI, so I'm not sure what the problem is.

UPDATE: it turned out that I accidentally ran run_tests.php via PHP 8.0.. Sorry for the noise!

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.

4 participants