History log of /PHP-8.2/ext/dom/tests/DOMNode_replaceChild_error1.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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 ...