return NS_OK; }
nsGenericHTMLContainerElement::ReplaceChildAt(nsIContent* aKid,                                              PRInt32 aIndex,                                              PRBool aNotify){  NS_PRECONDITION(nsnull != aKid, "null ptr");  nsIContent* oldKid = (nsIContent *)mChildren.ElementAt(aIndex);  PRBool rv = mChildren.ReplaceElementAt(aKid, aIndex);  if (rv) {    NS_ADDREF(aKid);    aKid->SetParent(mContent);    nsRange::OwnerChildReplaced(mContent, aIndex, oldKid);    nsIDocument* doc = mDocument;    if (nsnull != doc) {      aKid->SetDocument(doc, PR_FALSE);      if (aNotify) {        doc->ContentReplaced(mContent, oldKid, aKid, aIndex);      }    }    oldKid->SetDocument(nsnull, PR_TRUE);    oldKid->SetParent(nsnull);    NS_RELEASE(oldKid);  }  return NS_OK;}