Fix range.surroundContents() to not rearrange the content order. Bug 191625,
r=sicking, sr=peterv git-svn-id: svn://10.0.0.236/trunk@140531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f9eaf965bc
commit
5ce5988cbf
@ -2208,7 +2208,7 @@ nsresult nsRange::SurroundContents(nsIDOMNode* aN)
|
||||
if(tFound)
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> tChild;
|
||||
tChildList->Item(i-1, getter_AddRefs(tChild));
|
||||
tChildList->Item(i, getter_AddRefs(tChild));
|
||||
tAncestorContainer->InsertBefore(aN, tChild, getter_AddRefs(tempNode));
|
||||
}
|
||||
else // there is an error this may need to be updated later
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user