Commit 30bc6fe4 authored by bdakin's avatar bdakin
Browse files

Bug #:

Submitted by:
Reviewed by:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent deb8d3c4
2005-09-20 Beth Dakin <bdakin@apple.com>
Reviewed by Darin
Test cases added: (NONE)
Fixing the fix I submitted a few minutes ago for <rdar://problem/4039660>
The case this extra fix safeguards against will probably never occur, but
it makes the code safer.
* khtml/xml/dom_nodeimpl.cpp: Send newChild to traverseNextNode()
(DOM::NodeImpl::checkAddChild):
2005-09-20 Beth Dakin <bdakin@apple.com>
 
Reviewed by Hyatt
......
......@@ -1140,7 +1140,7 @@ void NodeImpl::checkAddChild(NodeImpl *newChild, int &exceptioncode)
// change the document pointer of newChild and all of its children to be the new document
if (shouldAdoptChild) {
for (NodeImpl* node = newChild; node; node = node->traverseNextNode()) {
for (NodeImpl* node = newChild; node; node = node->traverseNextNode(newChild)) {
KJS::ScriptInterpreter::updateDOMNodeDocument(node, node->getDocument(), getDocument());
node->setDocument(getDocument()->docPtr());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment