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

Ian Hickson ian at hixie.ch
Wed Jun 30 06:18:28 PDT 2004

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.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list