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 ...
|