[whatwg] Some questions to WF2

Maniac Maniac at SoftwareManiacs.Org
Fri Dec 10 01:41:17 PST 2004


Olav Junker Kjær wrote:

> Okay, but then the output element should also support the validation 
> interface. 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.

May be then just specify new collection like 'form.validatedElements'? 
It may be walked through without additional checking and allows not to 
introduce confusing methods to other elements.

And for the DOM, I beleive, some pre-defined TreeWalker may do the job...



More information about the whatwg mailing list