[whatwg] Forms dont submit when disabling submit button

A simple use case -

<form action="javascript:alert('SUCCESS')">
<input type="submit" onclick="this.disabled=true; return true;">
</form>
This does not submit the form in IE, Opera or Webkit but in firefox it does
show alert. Considering generic behavior of HTML5 forms, until and unless
submit button is active submit action should also be followed by onclick
event on submit button. Just need to get what can be the exact behavior
here?
According to specs, (
http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#submit-button-state)
when button is activated, it should submit the form.

--
Kaustubh Atrawalkar

Received on Tuesday, 27 September 2011 11:05:45 UTC