W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2010

addEventListener with useCapture = true triggered by target phase event?

From: ATSUSHI TAKAYAMA <taka.atsushi@googlemail.com>
Date: Fri, 19 Feb 2010 04:32:10 -0500
Message-ID: <9cef076f1002190132q26982bb2tcfadbaafb3eb0ea3@mail.gmail.com>
To: www-dom@w3.org

The current DOM3 Events spec
<http://www.w3.org/TR/DOM-Level-3-Events/#glossary-target-phase> says;

useCapture of type boolean
If true, useCapture indicates that the user wishes to add the event
listener for the capture phase only, i.e. this event listener will not
be triggered during the target and bubbling phases. If false, the
event listener must only be triggered during the target and bubbling

This apparently has come from the DOM2 Events' "A capturing
EventListener will not be triggered by events dispatched directly to
the EventTarget upon which it is registered.". However, none of the
browsers (of Firefox 3.6, Safari 4, Chromium, Opera 10.10 and Opera
10.50) follow this. Opera used to be compliant with the spec, but they
have changed their behavior to match the rest.

So I think the spec has to be changed to trigger the EventListener
added with useCapture = true.

Received on Friday, 19 February 2010 09:32:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:56 UTC