W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2004

[whatwg] Some questions to WF2

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 9 Dec 2004 22:37:31 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0412092236020.4755@dhalsim.dreamhost.com>
On Thu, 9 Dec 2004, [ISO-8859-1] Olav Junker Kj?r wrote:
> >
> >>OTOH I think it is a bit strange that buttons support validation:
> >>validate(), validity, validationMessage etc. How can a button be
> >>invalid?
> >
> > This is mainly so that you can loop through the form.elements array
> > and not worry about checking that each control is not a button.
> 
> Okay, but then the output element should also support the validation
> interface.

Oops, good point. Added.


> I think it is confusing that elements which dont support validation 
> exposes e.g. the setCustomValidity() method. I would prefer a flag 
> isValidateable or something like that, which could be checked before 
> accessing the validation interface.

That just seems awkward, though. Is it really that confusing?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 9 December 2004 14:37:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:38 UTC