targ->AddEventListener(NS_LITERAL_STRING("xforms-moz-hint-off"), this, PR_FALSE);
nsXFormsMessageElement::ParentChanged(nsIDOMElement *aNewParent){  if (mType == eType_Normal || !aNewParent)    return NS_OK;  nsCOMPtr<nsIDOMEventTarget> targ(do_QueryInterface(aNewParent));  NS_ENSURE_STATE(targ);  if (mType == eType_Hint) {    targ->AddEventListener(NS_LITERAL_STRING("xforms-hint"), this, PR_FALSE);  } else if (mType == eType_Help) {    targ->AddEventListener(NS_LITERAL_STRING("xforms-help"), this, PR_FALSE);  } else if (mType == eType_Alert) {    // Adding listeners for error events, which have a form control as a target.    targ->AddEventListener(NS_LITERAL_STRING("xforms-invalid"), this, PR_TRUE);    targ->AddEventListener(NS_LITERAL_STRING("xforms-out-of-range"), this, PR_TRUE);    targ->AddEventListener(NS_LITERAL_STRING("xforms-binding-exception"), this, PR_TRUE);  }  return NS_OK;}