History log of /PHP-8.1/ext/dom/tests/DOMNode_removeChild_error1.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 781e6b4d 08-Sep-2021 Tim Starling

Fix O(N) performance of DOMNode::replaceChild() and DOMNode::removeChild()

Don't loop over all children to determine if the target node really is a
child, just trust the parent pointer.

Fix O(N) performance of DOMNode::replaceChild() and DOMNode::removeChild()

Don't loop over all children to determine if the target node really is a
child, just trust the parent pointer. Add tests.

show more ...