[whatwg] [wf2] disabled default submit button

Anne van Kesteren wrote:
> # <!DOCTYPE html>
> # <form method="get">
> #  <p><input name="t1">
> #  <p><input type="submit" name="s1" disabled="disabled">
> #  <p><input name="t2">
> #  <p><input type="submit" name="s2">
> # </form>
> 
> (1) When t1 is focused the default submit button in IE is s2 and in Opera and
> Firefox it is s1 but disabled so it does not work.
> 
> (2) When t2 is focused the default submit button in IE, Opera and Firefox is s2.
> 
> In both situations all non disabled form controls are submitted.

   Yeah, button s1 should never be submitted. Button s2 should be the
default button.

> I think a change has to be made to the specification as it does not reflect
> reality, although reality can be quite ugly.

   Should be as easy as inserting the word "non-disabled" somewhere...

Received on Tuesday, 26 July 2005 13:10:58 UTC