nsHTMLOptionCollection::NamedItem(const nsAString& aName, nsIDOMNode** aReturn)
nsHTMLSelectElement::NamedItem(const nsAString& aName, nsIDOMNode** aReturn)
nsHTMLOptionCollection::NamedItem(const nsAString& aName,                                  nsIDOMNode** aReturn){  PRUint32 count;  nsresult rv = mElements->Count(&count);  *aReturn = nsnull;  for (PRUint32 i = 0; i < count && !*aReturn; i++) {    nsCOMPtr<nsIContent> content;    rv = mElements->QueryElementAt(i,                                   NS_GET_IID(nsIContent),                                   getter_AddRefs(content));    if (content) {      nsAutoString name;      if (((content->GetAttr(kNameSpaceID_None, nsHTMLAtoms::name,                             name) == NS_CONTENT_ATTR_HAS_VALUE) &&           aName.Equals(name)) ||          ((content->GetAttr(kNameSpaceID_None, nsHTMLAtoms::id,                             name) == NS_CONTENT_ATTR_HAS_VALUE) &&           aName.Equals(name))) {        rv = CallQueryInterface(content, aReturn);      }    }  }    return rv;}