!(aFlags & NS_EVENT_FLAG_CAPTURE)) {
!(aFlags & NS_EVENT_FLAG_CAPTURE) && !(aFlags & NS_EVENT_FLAG_SYSTEM_EVENT)) {
nsHTMLFormElement::HandleDOMEvent(nsIPresContext* aPresContext,                                  nsEvent* aEvent,                                  nsIDOMEvent** aDOMEvent,                                  PRUint32 aFlags,                                  nsEventStatus* aEventStatus){  NS_ENSURE_ARG_POINTER(aEvent);  // Ignore recursive calls to submit and reset  if (NS_FORM_SUBMIT == aEvent->message) {    if (mGeneratingSubmit) {      return NS_OK;    }    mGeneratingSubmit = PR_TRUE;  }  else if (NS_FORM_RESET == aEvent->message) {    if (mGeneratingReset) {      return NS_OK;    }    mGeneratingReset = PR_TRUE;  }  nsresult ret = nsGenericHTMLContainerElement::HandleDOMEvent(aPresContext,                                                               aEvent,                                                               aDOMEvent,                                                               aFlags,                                                               aEventStatus);  if ((NS_OK == ret) && (nsEventStatus_eIgnore == *aEventStatus) &&      !(aFlags & NS_EVENT_FLAG_CAPTURE)) {    switch (aEvent->message) {      case NS_FORM_RESET:      case NS_FORM_SUBMIT:      {        ret = DoSubmitOrReset(aPresContext, aEvent, aEvent->message);      }      break;    }  }  if (NS_FORM_SUBMIT == aEvent->message) {    mGeneratingSubmit = PR_FALSE;  }  else if (NS_FORM_RESET == aEvent->message) {    mGeneratingReset = PR_FALSE;  }  return ret;}