[whatwg] Some questions to WF2
Ian Hickson
ian at hixie.ch
Thu Dec 9 14:37:31 PST 2004
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list