nsISelectElement* select;
nsISelectElement* sel;
nsHTMLOptionElement::SetParent(nsIContent* aParent){  nsresult result = NS_OK;  // Remove us from our old select element  if (nsnull != mInner.mParent) {    nsIDOMHTMLSelectElement* oldSelectElement = nsnull;    GetSelect(oldSelectElement);    if (nsnull != oldSelectElement) {      nsISelectElement* select;            if (NS_SUCCEEDED(oldSelectElement->QueryInterface(kISelectElementIID, (void**)&select))) {        select->RemoveOption(this);        NS_RELEASE(select);      }      NS_RELEASE(oldSelectElement);    }  }  result = mInner.SetParent(aParent);  if (nsnull != aParent) {    nsIDOMHTMLSelectElement* newSelectElement = nsnull;    GetSelect(newSelectElement);    if (nsnull != newSelectElement) {      nsISelectElement* select;            if (NS_SUCCEEDED(newSelectElement->QueryInterface(kISelectElementIID, (void**)&select))) {        select->AddOption(this);        NS_RELEASE(select);      }      NS_RELEASE(newSelectElement);    }  }  return result;}