if (NS_SUCCEEDED(rv)) { if (nsnull!=aValue) { nsIDOMNode* resultingChild; mInner.AppendChild(aValue, &resultingChild);
if (NS_FAILED(rv)) { return rv; }  if (nsnull!=aValue) { nsCOMPtr<nsIDOMNode> child; rv = mInner.GetFirstChild(getter_AddRefs(child)); if (NS_FAILED(rv)) { return rv;
nsHTMLTableElement::SetTHead(nsIDOMHTMLTableSectionElement* aValue){  nsresult rv = DeleteTHead();  if (NS_SUCCEEDED(rv)) {    if (nsnull!=aValue)    {      nsIDOMNode* resultingChild;      mInner.AppendChild(aValue, &resultingChild);    }  }  return rv;}