Fix importNode, need to set the document before notifying. Bug 124358. r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@114021 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3004,9 +3004,11 @@ nsDocument::InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild,
|
||||
// index-th spot in mChildren.
|
||||
if (ELEMENT_NODE == nodeType)
|
||||
mRootContent = content;
|
||||
ContentInserted(nsnull, content, indx);
|
||||
|
||||
content->SetDocument(this, PR_TRUE, PR_TRUE);
|
||||
|
||||
ContentInserted(nsnull, content, indx);
|
||||
|
||||
*aReturn = aNewChild;
|
||||
NS_ADDREF(aNewChild);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user