[whatwg] [WF2] the form attribute

Ian Hickson ian at hixie.ch
Sat Feb 3 00:36:21 PST 2007


On Sat, 3 Feb 2007, Hallvord R M Steen wrote:
>
> http://whatwg.org/specs/web-forms/current-work/#formAttribute
> 
> says
> 
> > All form controls as well as the fieldset element may have the form 
> > attribute specified. The form attribute gives a space- separated list 
> > of IDs of form elements that the form control is to be associated with
> 
> I'm surprised this hasn't been brought up, but the "form" attribute from 
> the spec is unimplementable. Form controls already have a "form" 
> attribute that refers to the form *node* the control is associated with. 
> Turning that into a list of strings will break a lot of existing content 
> like
> 
> <select onchange="this.form.submit()">
> 
> I'd rename the form attribute to formsList . (Name is up for discussion 
> of course..)

The "form attribute" in the text above is a content attribute. WF2 defines 
the DOM attributes separately.

-- 
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