Dan Allen ([EMAIL PROTECTED]) wrote:

> Why are fields of type = 'password' excluded from minLength and
> maxLength checks?  Seems to be a bug to me.  Surely just because the
> form input is using hidden characters does not mean that they should
> be excluded from these checks, especially since the server-side
> check will handle password and text fields as one in the same.
> 
> By the way, I checked CVS and the issue is still current.

Another thing I noticed is that while the "depends" attribute has
been removed for minlength and maxlength, the javascript check still
blocks you from submitting the form if the field is empty.  For
instance, I want to have a check for minlength if the field has a
value.  I would do

<field name="password" depends="minlength"/>

I would expect it to allow either empty or my minlength.  Right now
it checks the length regardless of whether it has a value.  That to
me seems wrong since that should be the job of the "required" value
for the "depends" attribute.

Comments?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Since no one can ever know for certain whether or not his own 
view of creation is the correct one, it is impossible for him 
to know if someone else's is the wrong one.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to