break;
NS_IF_RELEASE(thisOption); break;
nsHTMLOptionElement::GetIndex(PRInt32* aIndex){  nsresult res = NS_ERROR_FAILURE;  *aIndex = -1; // -1 indicates the index was not found  // Get our nsIDOMNode interface to compare apples to apples.  nsIDOMNode* thisNode = nsnull;  if (NS_OK == this->QueryInterface(kIDOMNodeIID, (void**)&thisNode)) {    // Get our containing select content object.    nsIDOMHTMLSelectElement* selectElement = nsnull;    if (NS_OK == GetSelect(selectElement)) {      // Get the options from the select object.      nsIDOMNSHTMLOptionCollection* options = nsnull;      if (NS_OK == selectElement->GetOptions(&options)) {        // Walk the options to find out where we are in the list (ick, O(n))        PRUint32 length = 0;        options->GetLength(&length);        nsIDOMNode* thisOption = nsnull;        for (PRUint32 i = 0; i < length; i++) {          options->Item(i, &thisOption);          if (thisNode == thisOption) {            res = NS_OK;            *aIndex = i;            break;          }          NS_IF_RELEASE(thisOption);        }        NS_RELEASE(options);      }      NS_RELEASE(selectElement);    }    NS_RELEASE(thisNode);  }