case NS_FORM_OBJECT :
ShouldBeInElements(nsIFormControl* aFormControl){  PRInt32 type;  aFormControl->GetType(&type);  // For backwards compatibility (with 4.x and IE) we must not add  // <input type=image> elements to the list of form controls in a  // form.  switch (type) {  case NS_FORM_BUTTON_BUTTON :  case NS_FORM_BUTTON_RESET :  case NS_FORM_BUTTON_SUBMIT :  case NS_FORM_INPUT_BUTTON :  case NS_FORM_INPUT_CHECKBOX :  case NS_FORM_INPUT_FILE :  case NS_FORM_INPUT_HIDDEN :  case NS_FORM_INPUT_RESET :  case NS_FORM_INPUT_PASSWORD :  case NS_FORM_INPUT_RADIO :  case NS_FORM_INPUT_SUBMIT :  case NS_FORM_INPUT_TEXT :  case NS_FORM_SELECT :  case NS_FORM_TEXTAREA :  case NS_FORM_FIELDSET :    return PR_TRUE;  }  // These form control types are not supposed to end up in the  // form.elements array  //  // NS_FORM_INPUT_IMAGE  // NS_FORM_LABEL  // NS_FORM_OPTION  // NS_FORM_OPTGROUP  // NS_FORM_LEGEND  return PR_FALSE;}