mNodeInfo->NameChanged(nsHTMLAtoms::td, *getter_AddRefs(nodeInfo));
mNodeInfo->NameChanged(nsHTMLAtoms::td, getter_AddRefs(nodeInfo));
nsHTMLTableRowElement::InsertCell(PRInt32 aIndex, nsIDOMHTMLElement** aValue){  *aValue = nsnull;  if (aIndex < -1) {    return NS_ERROR_DOM_INDEX_SIZE_ERR;  }    nsCOMPtr<nsIDOMHTMLCollection> cells;  GetCells(getter_AddRefs(cells));  PRUint32 cellCount;  cells->GetLength(&cellCount);  if (aIndex > PRInt32(cellCount)) {    return NS_ERROR_DOM_INDEX_SIZE_ERR;  }  PRBool doInsert = (aIndex < PRInt32(cellCount)) && (aIndex != -1);  // create the cell  nsCOMPtr<nsINodeInfo> nodeInfo;  mNodeInfo->NameChanged(nsHTMLAtoms::td, *getter_AddRefs(nodeInfo));  nsCOMPtr<nsIHTMLContent> cellContent;  nsresult rv = NS_NewHTMLTableCellElement(getter_AddRefs(cellContent),                                           nodeInfo);  NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIDOMNode> cellNode(do_QueryInterface(cellContent));  NS_ASSERTION(cellNode, "Should implement nsIDOMNode!");  nsCOMPtr<nsIDOMNode> retChild;  if (doInsert) {    nsCOMPtr<nsIDOMNode> refCell;    cells->Item(aIndex, getter_AddRefs(refCell));    rv = InsertBefore(cellNode, refCell, getter_AddRefs(retChild));  } else {    rv = AppendChild(cellNode, getter_AddRefs(retChild));  }  if (retChild) {    CallQueryInterface(retChild, aValue);  }  return NS_OK;}