rv = text->SetText(aText, PR_TRUE); NS_ENSURE_SUCCESS(rv, rv);
text->SetText(aText, PR_TRUE);
nsHTMLOptionElement::SetText(const nsAString& aText){  PRUint32 i, numNodes = GetChildCount();  PRBool usedExistingTextNode = PR_FALSE;  // Do we need to create a text node?  nsresult rv = NS_OK;  for (i = 0; i < numNodes; i++) {    nsCOMPtr<nsIDOMText> domText(do_QueryInterface(GetChildAt(i)));    if (domText) {      rv = domText->SetData(aText);      if (NS_SUCCEEDED(rv)) {        // If we used an existing node, the notification will not happen (the        // notification typically happens in AppendChildTo).        NotifyTextChanged();        usedExistingTextNode = PR_TRUE;      }      break;    }  }  if (!usedExistingTextNode) {    nsCOMPtr<nsITextContent> text;    rv = NS_NewTextNode(getter_AddRefs(text));    NS_ENSURE_SUCCESS(rv, rv);    rv = text->SetText(aText, PR_TRUE);    NS_ENSURE_SUCCESS(rv, rv);    rv = AppendChildTo(text, PR_TRUE, PR_FALSE);  }  return rv;}