rv = Item(selectedIndex, getter_AddRefs(node));  nsCOMPtr<nsIDOMHTMLOptionElement> option = do_QueryInterface(node); if (NS_SUCCEEDED(rv) && option) { return option->GetValue(aValue);
}
nsHTMLSelectElement::GetValue(nsAString& aValue){  PRInt32 selectedIndex;  nsresult rv = GetSelectedIndex(&selectedIndex);  if (NS_SUCCEEDED(rv) && selectedIndex > -1) {    nsCOMPtr<nsIDOMNode> node;    rv = Item(selectedIndex, getter_AddRefs(node));    nsCOMPtr<nsIDOMHTMLOptionElement> option = do_QueryInterface(node);    if (NS_SUCCEEDED(rv) && option) {      return option->GetValue(aValue);    }  }  aValue.Truncate(0);  return rv;}