- From: Philippe Le Hegaret <plh@w3.org>
- Date: 20 Jun 2003 16:56:46 -0400
- To: Brad Pettit <bradp@microsoft.com>
- Cc: WWW DOM <www-dom@w3.org>
On Sat, 2002-07-13 at 18:13, Brad Pettit wrote: > 1.2.4 > "In the case of the hyperlink in the browser, canceling the action > would have the result of not activating the hyperlink." > > "Different implementations will specify their own default actions, if > any, associated with each event. The DOM does not attempt to specify > these actions." > > In the case of HTMLEvents, the default actions for some of the > objects, such as <A>, as well as their relationship with DOM 1 HTML > (such as what DOM2/3 events result from calling the "click, blur, > focus, or select" methods on an element) would be worth specification. > Otherwise we end up with a situation where the first widely > distributed implementation dictates the specification. The new section 1.7.7.1 should clarify this: [[ The concept of activation ({"http://www.w3.org/2001/xml-events", "DOMActivate"}) was introduced in [DOM Level 2 Events] to separate generic actions from the devices used to activate them. For example, an hyperlink can be activated using a mouse or a keyboard, and the activation will force the user agent to follow the link. It is expected that the action of following the link is done using a default action attached to the hyperlink element. In such case, the default action of the device event type is to trigger the event type {"http://www.w3.org/2001/xml-events", "DOMActivate"}. Preventing the default action of a mouse click when the target node is an hyperlink will prevent the activation. The same approach is made for control elements. If a change is made before the activation, cancelling the device event type will also reverse the change. A good example is the attribute HTMLInputElement.checked. As described in [DOM Level 2 HTML], the value of this property may be changed before the dispatch of the event: the user clicks on the radio button, the radio button is being checked (or unchecked) on the display, the attribute HTMLInputElement.checked is changed as well, and then the device event type {"http://www.w3.org/2001/xml-events", "click"} is being dispatched. If the default action of the device event type is prevented, or if the default action attached to the {"http://www.w3.org/2001/xml-events", "DOMActivate"} event type is prevented, the value of the property will need to be changed back to its original value. ]] http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/events.html#Events-eventgroupings-htmlevents Let us know if this is not clear enough, Philippe PS: your issue has been closed: http://www.w3.org/2002/07/DOM-Level-3-Events-issues/issues.html#pettit4
Received on Friday, 20 June 2003 16:56:49 UTC