aEntry.AddIdContent(aContent, PR_FALSE);
aEntry.AddIdContent(aContent);
FindNamedItems(const nsAString& aName, nsIContent *aContent,               IdAndNameMapEntry& aEntry, PRBool aIsXHTML){  NS_ASSERTION(aEntry.mNameContentList,               "Entry w/o content list passed to FindNamedItems()!");  NS_ASSERTION(aEntry.mNameContentList != NAME_NOT_VALID,               "Entry that should never have a list passed to FindNamedItems()!");  if (aContent->IsContentOfType(nsIContent::eTEXT)) {    // Text nodes are not named items nor can they have children.    return;  }  nsAutoString value;  if (!aIsXHTML && IsNamedItem(aContent, aContent->Tag(), value) &&      value.Equals(aName)) {    aEntry.mNameContentList->AppendElement(aContent);  }  if (!aEntry.GetIdContent()) {    // Maybe this node has the right id?    nsIAtom* idAttr = aContent->GetIDAttributeName();    if (idAttr &&        aContent->AttrValueIs(kNameSpaceID_None, idAttr,                              aName, eCaseMatters)) {      aEntry.AddIdContent(aContent, PR_FALSE);    }  }  PRUint32 i, count = aContent->GetChildCount();  for (i = 0; i < count; ++i) {    FindNamedItems(aName, aContent->GetChildAt(i), aEntry, aIsXHTML);  }}