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

Re: addEventListener with useCapture = true triggered by target phase event?

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Fri, 19 Feb 2010 11:12:16 +0000
Message-ID: <20100219111216.eb4gp73coww8kws8@staff.opera.com>
To: ATSUSHI TAKAYAMA <taka.atsushi@googlemail.com>
Siterer ATSUSHI TAKAYAMA <taka.atsushi@googlemail.com>:

> 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.

Thanks for spotting that - it's absolutely correct that we had to  
change this due to having too many compatibility problems with web  
content expecting capturing listeners to fire also on event target.

I support changing the spec so that it says a capturing listener only  
fires during capture and at target phases but not during bubbling.
-- Hallvord
Received on Friday, 19 February 2010 16:22:51 UTC

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