W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [wf2] disabled default submit button

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Tue, 26 Jul 2005 15:22:31 +0200
Message-ID: <20050726152231.xh174go6nfsows40@webmail.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.

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.

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

Kind regards,


Anne van Kesteren
Received on Tuesday, 26 July 2005 06:22:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC