зеркало из https://github.com/mozilla/pjs.git
XForms Bug 299032 - Input not validated on load. r=aaronr/allan a=mkaply
This commit is contained in:
Родитель
61aaef692a
Коммит
06efb3d5f6
|
@ -1542,6 +1542,14 @@ nsXFormsModelElement::ProcessBind(nsIXFormsXPathEvaluator *aEvaluator,
|
|||
multiMIP = PR_TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (j == eModel_type) {
|
||||
// Inform MDG that it needs to check type. The only arguments
|
||||
// actually used are |eModel_constraint| and |node|.
|
||||
rv = mMDG.AddMIP(eModel_constraint, nsnull, nsnull, PR_FALSE, node, 1,
|
||||
1);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
} else {
|
||||
// the rest of the MIPs are given to the MDG
|
||||
nsCOMPtr<nsIDOMNSXPathExpression> expr = props[j];
|
||||
|
|
Загрузка…
Ссылка в новой задаче