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

[whatwg] Some questions to WF2

From: Olav Junker Kjr <olav@olav.dk>
Date: Fri, 10 Dec 2004 00:12:40 +0100
Message-ID: <41B8DBE8.30802@olav.dk>
Ian Hickson wrote:
>>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?

I dunno, maybe not. I imagine it would be confusing if it was possible 
to call setCustomValidity() on an output element, but it just didn't 
have any effect. It wouldn't be unreasonable for an author to expect 
this to actually work.
But if it just raised an exception ("control does not support 
validation") there probably wouldn't be a problem.

Olav Junker Kj?r
Received on Thursday, 9 December 2004 15:12:40 UTC

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