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

[whatwg] Clarification on canceling events

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 1 Dec 2010 00:53:16 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1012010051460.26618@ps20323.dreamhostps.com>
On Mon, 23 Aug 2010, Andrew Oakley wrote:
>
> Section 7.1.6.1 (Event handlers) says "the event must be canceled".
> This seems a little unclear to me, I assume this means preventDefault()
> rather than stopImmediatePropagation() or stopPropagation().

This intentionally uses the same terminology as preventDefault()'s 
definition:

   http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-event-type-preventDefault


> Is it possible for HTML5 to either reference these parts of DOM Events 
> or more of the language that D3E uses (e.g. say that the default actions 
> should not occur, but propagation continues)?

The verb "to cancel" seems to be the operative terminology used by the 
DOM3 Events specification for this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 30 November 2010 16:53:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC