nsOptionList::IndexOf(nsIContent* aOption) { nsIDOMHTMLOptionElement* option;  if (mDirty && (nsnull != mSelect)) { GetOptions(); } if ((nsnull != aOption) && NS_SUCCEEDED(aOption->QueryInterface(kIDOMHTMLOptionElementIID, (void**)&option))) { return mElements.IndexOf(option); } return -1; }
NS_IMPL_ICONTENT_NO_SETPARENT_NO_SETDOCUMENT_USING_GENERIC(mInner)
nsOptionList::IndexOf(nsIContent* aOption){  nsIDOMHTMLOptionElement* option;  if (mDirty && (nsnull != mSelect)) {    GetOptions();  }  if ((nsnull != aOption) &&    NS_SUCCEEDED(aOption->QueryInterface(kIDOMHTMLOptionElementIID, (void**)&option))) {    return mElements.IndexOf(option);  }  return -1;}