nsHTMLValue val; nsresult rv = mInner.GetAttribute(nsHTMLAtoms::checked, val); *aValue = (NS_CONTENT_ATTR_NOT_THERE != rv); return NS_OK;
return GetDefaultChecked(aValue);
nsHTMLInputElement::GetChecked(PRBool* aValue){  PRInt32 type;  GetType(&type);  if (NS_FORM_INPUT_CHECKBOX == type) {    if (nsnull != mWidget) {      nsICheckButton* checkbox = nsnull;      if (NS_OK == mWidget->QueryInterface(kICheckButtonIID,(void**)&checkbox)) {        checkbox->GetState(*aValue);         NS_RELEASE(checkbox);        return NS_OK;      }    }  } else if (NS_FORM_INPUT_RADIO == type) {    if (nsnull != mWidget) {      nsIRadioButton* radio = nsnull;      if (NS_OK == mWidget->QueryInterface(kIRadioIID,(void**)&radio)) {        radio->GetState(*aValue);         NS_RELEASE(radio);        return NS_OK;      }    }  }     nsHTMLValue val;                                                   nsresult rv = mInner.GetAttribute(nsHTMLAtoms::checked, val);         *aValue = (NS_CONTENT_ATTR_NOT_THERE != rv);                          return NS_OK;                                                     }