res = parent->RemoveChild(aNode, getter_AddRefs(ignored));
if (!aListOnly || nsHTMLEditUtils::IsList(parent)) res = parent->RemoveChild(aNode, getter_AddRefs(ignored));
nsHTMLEditor::StripFormattingNodes(nsIDOMNode *aNode){  NS_ENSURE_TRUE(aNode, NS_ERROR_NULL_POINTER);  nsresult res = NS_OK;  nsCOMPtr<nsIContent> content = do_QueryInterface(aNode);  if (IsEmptyTextContent(content))  {    nsCOMPtr<nsIDOMNode> parent, ignored;    aNode->GetParentNode(getter_AddRefs(parent));    if (parent)    {      res = parent->RemoveChild(aNode, getter_AddRefs(ignored));      return res;    }  }    if (!nsHTMLEditUtils::IsPre(aNode))  {    nsCOMPtr<nsIDOMNode> child;    aNode->GetLastChild(getter_AddRefs(child));      while (child)    {      nsCOMPtr<nsIDOMNode> tmp;      child->GetPreviousSibling(getter_AddRefs(tmp));      res = StripFormattingNodes(child);      NS_ENSURE_SUCCESS(res, res);      child = tmp;    }  }  return res;}