W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] Some questions to WF2

From: Olav Junker Kjr <olav@olav.dk>
Date: Sun, 21 Nov 2004 14:09:27 +0100
Message-ID: <41A09387.3050201@olav.dk>
I have a few assorted questions to the WF2 spec (the latest working draft):

1)
Section 2.3
 > If the platform supports submitting a form implicitly (for example, on
 > some platforms hitting the "enter" key while a text field is focused
 > implicitly submits the form), then when doing so the first submit
 > button, this default button, must be the one used to initiate form
 > submission (and it will therefore be successful).

Does this imply that a form with no submit buttons (or input type=image) 
can not be submitted?

2)
Button API:
I noticed that button elements don't have the formchanged() method. Is
this intentional? Since buttons recieve formchanged and forminput 
events, I would think that it should support formchanged() also.

3)
OTOH I think it is a bit strange that buttons support validation:
validate(), validity, validationMessage etc. How can a button be invalid?

5)
The "data" attribute is not on the form DOM interface.
The "taget" attribute is not on the input or button interfaces (although 
it is on the form interface)

6)
When might formchange be fired on fieldsets?
According to section 7.1 (working draft) Formchange-events is dispatched
to all controls in the elements array. Fieldsets are not part of the
elements array.
However, in appendix A it says "The onformchange and onforminput
attributes are added to all form control elements (including fieldset
and output)"

7) Does the "successful" property apply to submit buttons?


regards
Olav Junker Kj?r
Received on Sunday, 21 November 2004 05:09:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC