return mOptions->NamedItem(aName, 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_HTML, nsHTMLAtoms::name, name) == NS_CONTENT_ATTR_HAS_VALUE) && (aName.Equals(name))) || ((content->GetAttr(kNameSpaceID_HTML, nsHTMLAtoms::id, name) == NS_CONTENT_ATTR_HAS_VALUE) && (aName.Equals(name)))) { rv = CallQueryInterface(content, aReturn); } } }  return rv;
nsHTMLSelectElement::NamedItem(const nsAReadableString& aName,                               nsIDOMNode** aReturn){  return mOptions->NamedItem(aName, aReturn);}