From: Katana <ka...@ka...> - 2004-05-14 11:18:53
|
> I just noticed that the email js validator accepts empty fields as valid > email addresses. I don't think this is the wanted behaviour in most > cases. > In some it might be however, so I suggest to add an optional parameter > like acceptEmpty to the email and url validators. > > What do you think? It works the way I wanted it to... In my opinion, to make a field mandatory you use the empty validator, and to check its content you use another validator. So checking if an an email field has been filled would require empty then email validators. Maybe we should add a note to all the validators that check a field content (syntax, email...) saying that these validators do not check if the field has been filled; what do you think ? Katana |