]> granicus.if.org Git - php/commit
Fix #78221: DOMNode::normalize() doesn't remove empty text nodes
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 11 Mar 2020 12:02:09 +0000 (13:02 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 7 Apr 2020 11:04:14 +0000 (13:04 +0200)
commitefec22b7bedfb1eae2df72b84cf5ad229e0bdc1e
tree6a7aa5d3d1fec5cbc1dbe0c99c9204df0b5e999e
parent656eac74fa6074aebc087bb73d2e4651f7dc8c9e
Fix #78221: DOMNode::normalize() doesn't remove empty text nodes

If a text node is not followed by another text node, we remove it, if
its textContent is empty.
NEWS
ext/dom/php_dom.c
ext/dom/tests/bug78221.phpt [new file with mode: 0644]