[whatwg] Some questions to WF2

Olav Junker Kjær olav at olav.dk
Fri Dec 10 02:01:38 PST 2004


Maniac wrote:
> 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.

Thats a great idea. The collection could be defined almost as the 
successful attribute is defined now, except that is should be 
independent of the current value and validity of the control (i.e. 
checkboxes and radiobuttons in a form is part of the collection except 
if they have no name, are disabled or is part of a repetition template 
or datalist *but* irrespective of whether they are checked or not, and 
whether they are required or not).

Maybe it would also be useful to have access to the button that 
initiated the form submission. This should probably be through a 
property on the submit event object, since this is only meaningful 
during the submission event. The button should not be part of the 
collection though, since it can't be validated.

Olav Junker Kjær



More information about the whatwg mailing list