nsString tag; section->GetTagName(tag); nsAutoString tfootAsString; nsHTMLAtoms::tfoot->ToString(tfootAsString); if (tfootAsString==tag)
nsCOMPtr<nsIAtom> tag; nsCOMPtr<nsIContent> content = do_QueryInterface(section);  content->GetTag(*getter_AddRefs(tag)); if (tag.get() == nsHTMLAtoms::tfoot)
nsHTMLTableElement::GetTFoot(nsIDOMHTMLTableSectionElement** aValue){  *aValue = nsnull;  nsIDOMNode* child=nsnull;  mInner.GetFirstChild(&child);  while (nsnull!=child)  {    nsIDOMHTMLTableSectionElement *section=nsnull;    nsresult rv = child->QueryInterface(kIDOMHTMLTableSectionElementIID, (void**)&section);    if ((NS_SUCCEEDED(rv)) && (nsnull!=section))    {      nsString tag;      section->GetTagName(tag);      nsAutoString tfootAsString;      nsHTMLAtoms::tfoot->ToString(tfootAsString);      if (tfootAsString==tag)      {        *aValue = section;        break;      }    }    child->GetNextSibling(&child);  }  return NS_OK;}