W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Forms dont submit when disabling submit button

From: Kaustubh Atrawalkar <kaustubh@motorola.com>
Date: Thu, 13 Oct 2011 12:09:36 +0530
Message-ID: <CANw-Mg8Z13M+PZirJpXYi59QK_NGavcEMknyNUx8pZBLGiDLhg@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC