[XForms] Elements with xsi:type are not validated on form load. Bug 332803, r=doronr+aaronr

This commit is contained in:
allan%beaufour.dk 2006-05-23 08:23:15 +00:00
Родитель 28ca46ef07
Коммит 9088d59680
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -869,6 +869,11 @@ nsXFormsMDGEngine::GetNCNodeState(nsIDOMNode *aContextNode)
return nsnull;
}
aContextNode->AddRef();
// Do an initial type check, and set the validity state
PRBool constraint;
mModel->ValidateNode(aContextNode, &constraint);
ns->Set(eFlag_CONSTRAINT_SCHEMA, constraint);
}
return ns;
}