parent->GetTag(getter_AddRefs(tag)); if (tag == nsHTMLAtoms::table) {
if (parent->Tag() == nsHTMLAtoms::table && parent->IsContentOfType(nsIContent::eHTML)) {
nsSelection::GetParentTable(nsIContent *aCell, nsIContent **aTable){  if (!aCell || !aTable) {    return NS_ERROR_NULL_POINTER;  }  nsCOMPtr<nsIAtom> tag;  for (nsIContent* parent = aCell->GetParent(); parent;       parent = parent->GetParent()) {    parent->GetTag(getter_AddRefs(tag));    if (tag == nsHTMLAtoms::table) {      *aTable = parent;      NS_ADDREF(*aTable);      return NS_OK;    }  }  return NS_OK;}