Simple code example. Even with submit button disabled, Safari will submit the form when pressing the return/enter key. Button is disabled for mouse clicks. <html> <body> <form method="post" action="nonpage.html"> <input type="text"> <input type="submit" value="This is disabled" DISABLED/> </form> </body> </html>
See also: bug 9756.
Created attachment 18478 [details] test case Same test as an attachment.
Confirmed with r29531.
What do MSIE and Firefox do in this case?
(In reply to comment #4) > What do MSIE and Firefox do in this case? > MSIE submits the form in the case of one text input. If you have two text inputs and a disabled submit, MSIE will not submit the form. Firefox will not submit the form if the submit input is disabled. Safari will submit the form with multiple text inputs and a disabled submit button.
What if there are multiple submit buttons?
<a href="..." id="sumLink" disabled="disabled">Foo</a> Is NOT disabled.
> <a href="..." id="sumLink" disabled="disabled">Foo</a> is invalid markup code. People of this bug should visit bug 14443 : Forms dont submit when disabling submit button which is the exact opposite summary of this bug.
We match IE in this case, for consistency with other edge cases. See bug 9756 for more information
Although the 2010 outcome was WONTFIX, I believe this behavior was changed in https://bugs.webkit.org/show_bug.cgi?id=243594. Mentioning it here because this bug still turns up in Google results.