[whatwg] WHAT calls for comments on Web Forms 2.0 proposal - elements collection

Dean Edwards dean at edwards.name
Wed Jun 30 06:28:22 PDT 2004


Ian Hickson wrote:

> On Mon, 28 Jun 2004, Dean Edwards wrote:
> 
>>i think we need a clear definition of what form controls constitute a
>>form's elements collection. although this information is available in
>>the WF2 spec, it is scattered about the document. i would like to see
>>this information in one place.
> 
> 
> Added. A warning, though. It's not pretty:
> 
> | The elements array must contain all the input, output, select,
> | textarea and button controls without a form attribute that have the
> | form as an ancestor, except if one of the ancestors between the
> | control and the form is a repetition template or another form, and,
> | all the input, output, select, textarea and button controls that
> | have a form attribute that points to the form, except if the control
> | has an ancestor that is a repetition template that is not also an
> | ancestor of the form.
> |
> | There is one exception. The elements array is defined to not include
> | image controls (input elements of type image). This is for backwards
> | compatibility with DOM Level 0. This excludes image buttons from
> | several features of this specification, such as onformchange
> | processing and validation.
> 

well that's cleared that up then. :-S

-dean





More information about the whatwg mailing list