child->GetTag(*getter_AddRefs(childTag));
child->GetTag(getter_AddRefs(childTag));
nsTableCellCollection::Item(PRUint32     aIndex,                             nsIDOMNode** aReturn){  *aReturn = nsnull;  PRUint32 theIndex = 0;  nsresult rv = NS_OK;  if (mParent) {    nsCOMPtr<nsIContent> child;    PRUint32 childIndex = 0;    mParent->ChildAt(childIndex, *getter_AddRefs(child));    while (child) {      nsCOMPtr<nsIAtom> childTag;      child->GetTag(*getter_AddRefs(childTag));      if ((nsHTMLAtoms::td == childTag.get()) ||          (nsHTMLAtoms::th == childTag.get())) {        if (aIndex == theIndex) {          CallQueryInterface(child, aReturn);          NS_ASSERTION(aReturn, "content element must be an nsIDOMNode");          break;        }        theIndex++;      }      childIndex++;      mParent->ChildAt(childIndex, *getter_AddRefs(child));    }  }  return rv;}