- From: Steven Pemberton <Steven.Pemberton@cwi.nl>
- Date: Wed, 28 Jan 2015 14:57:38 +0100
- To: public-forms@w3.org
In the definition of DOMActivate (http://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_DOMActivate_Event) it says: The default action for this event results in the following: None; notification event only. However, the overview table for the events (http://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#Events_Overview) says that DOMActivate is cancelable, which has no effect if there is no default action, so what would be the point? (However, DOM3 Events does the same thing http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMActivate, and so does HTML5). Furthermore, The Submit Element (http://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_submit_Element) says Implementation Requirements: The default action for event DOMActivate is to dispatch event xforms-submit to the submission element specified by attribute submission (or its default). My feeling is that DOMActivate should have a default action, which varies per element that generates it. These are the elements that generate DOMActivate: input, trigger, submit, secret, textarea, range, upload, select, select1 For reference, here is what HTML5 says about the click event, which is their equivalent: "The default action of the click event type varies based on the event target of the event and the value of the MouseEvent.button or MouseEvent.buttons attributes. Typical default actions of the click event type are as follows: If the event target has associated activation behavior, the default action MUST be to execute that activation behavior (see Activation triggers and behavior). If the event target is focusable, the default action MUST be to give that element document focus." http://www.w3.org/TR/DOM-Level-3-Events/#event-type-click Steven
Received on Wednesday, 28 January 2015 13:58:47 UTC