[whatwg] Submit buttons

Olav Junker Kjær olav at olav.dk
Tue May 24 11:13:06 PDT 2005

I think there is a slight inconsistency with submit buttons.
Section 2.17.:
"Normally, activating a submit button ... must submit the first form the 
control is associated with"
Section 2.3
"If the platform supports submitting a form implicitly ... then when 
doing so the first submit button, this default button, must be the one 
used to initiate form submission (and it will therefore be successful)."

The problem is that the the default button for a form might not submit 
the same form when activatated, if the form is not the first form in the 
forms collection of the button.

It could be solved by requiring that submit buttons (and input 
type=image) may only be associated with a single form at a time.

Olav Junker Kjær

More information about the whatwg mailing list