GetName(name); container->SetCurrentRadioButton(name, nsnull);
if (GetNameIfExists(name)) { container->SetCurrentRadioButton(name, nsnull); }
nsHTMLInputElement::SetChecked(PRBool aChecked){  nsresult rv = NS_OK;  //  // If the user or JS attempts to set checked, whether it actually changes the  // value or not, we say the value was changed so that defaultValue don't  // affect it no more.  //  SetCheckedChanged(PR_TRUE);  //  // Don't do anything if we're not changing whether it's checked (it would  // screw up state actually, especially when you are setting radio button to  // false)  //  PRBool checked = PR_FALSE;  GetChecked(&checked);  if (checked == aChecked) {    return NS_OK;  }  //  // Set checked  //  PRInt32 type;  GetType(&type);  if (type == NS_FORM_INPUT_RADIO) {    //    // For radio button, we need to do some extra fun stuff    //    if (aChecked) {      rv = RadioSetChecked();    } else {      rv = SetCheckedInternal(PR_FALSE);      nsCOMPtr<nsIRadioGroupContainer> container = GetRadioGroupContainer();      if (container) {        nsAutoString name;        GetName(name);        container->SetCurrentRadioButton(name, nsnull);      }    }  } else {    rv = SetCheckedInternal(aChecked);  }  return rv;}