[whatwg] Some questions to WF2

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