return oldChild not newChild when replacing with a docfragment

This commit is contained in:
jez 2010-12-29 00:11:20 +00:00
parent 6c749609c0
commit 90156036c0

View file

@ -435,7 +435,7 @@ class NodeImplWithChildren : public NodeImpl<stringT, string_adaptorT>,
DOMNode_implT* lc = newChild->getLastChild();
replaceChild(newChild->removeChild(lc), oldChild);
insertBefore(newChild, lc);
return newChild;
return oldChild;
} // if ...
checkCanAdd(newChild);