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

Bug #:

Submitted by:
Reviewed by:

git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent deb8d3c4
2005-09-20 Beth Dakin <>
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()
2005-09-20 Beth Dakin <>
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());
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