[whatwg] Forms dont submit when disabling submit button

Kaustubh Atrawalkar kaustubh at motorola.com
Tue Sep 27 11:05:45 PDT 2011

A simple use case -

<form action="javascript:alert('SUCCESS')">
<input type="submit" onclick="this.disabled=true; return true;">
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
According to specs, (
when button is activated, it should submit the form.

Kaustubh Atrawalkar

More information about the whatwg mailing list