return mOptions->NamedItem(aName, aReturn);
PRInt32 count = mElements.Count(); nsresult rv = NS_OK;  *aReturn = nsnull;  for (PRInt32 i = 0; i < count; i++) { nsCOMPtr<nsIContent> content = do_QueryInterface(mElements.ObjectAt(i));  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);  break; } } }  return rv;
nsHTMLSelectElement::NamedItem(const nsAString& aName,                               nsIDOMNode** aReturn){  return mOptions->NamedItem(aName, aReturn);}