[whatwg] [wf2] disabled default submit button

Quoting Anne van Kesteren <fora at annevankesteren.nl>:
> Example document:
>
> # <!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.

This is incorrect. For Firefox the default submit button remains to be s1 and
will therefore not submit the form.


> In both situations all non disabled form controls are submitted.
>
> With (1) Opera and Firefox seem to be following the Web Forms 2 
> specification,
> but with (2) none of the browsers seem to be compliant.

So Firefox is compliant, Opera is buggy and IE is non-conformant.

Perhaps the specification should be left as is if Opera can change the 
behavior.
It does make a lot of sense as it is now.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>

Received on Wednesday, 27 July 2005 04:03:04 UTC