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

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

Received on Wednesday, 30 June 2004 06:28:22 UTC