if (NS_CONTENT_ATTR_HAS_VALUE == option->GetValue(aValue)) {
nsresult result = option->GetValue(aValue); if (aValue.Length() > 0) {
nsSelectControlFrame::GetOptionValue(nsIDOMHTMLCollection& aCollection, PRUint32 aIndex, nsString& aValue){  PRBool status = PR_FALSE;  nsIDOMHTMLOptionElement* option = GetOption(aCollection, aIndex);  if (option) {    if (NS_CONTENT_ATTR_HAS_VALUE == option->GetValue(aValue)) {      status = PR_TRUE;    } else {      if (NS_CONTENT_ATTR_HAS_VALUE == option->GetText(aValue)) {        status = PR_TRUE;      }    }    NS_RELEASE(option);  }  return status;}