[whatwg] Forms dont submit when disabling submit button

Reopening discussion. Just curious about what can be exact behavior expected
in this case?
I have attached the sample use case.

- Kaustubh

On Tue, Sep 27, 2011 at 11:35 PM, Kaustubh Atrawalkar <kaustubh at motorola.com
> wrote:

> 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 Wednesday, 12 October 2011 23:39:36 UTC