W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2009

Re: Fwd: DOM Level 3 Events

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 19 May 2009 10:37:20 +0300
Message-ID: <4A1261B0.6070504@helsinki.fi>
To: "Emanuele D'Arrigo" <manu3d@gmail.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
On 5/19/09 1:27 AM, Emanuele D'Arrigo wrote:
> It's just that it's not clear which object is
> intended to be driving the event dispatch.
Well, that is an implementation detail. You can implement
event dispatch in different ways.

In Gecko 1.9.x there is an Event Dispatcher which creates
Event Target Chain and then iterates through the items
of that chain and calls their event listeners.
This way for example the event handling of XMLHttpRequest works
exactly the same way as event handling of a DOM Node -
Event Dispatcher doesn't know anything about DOM Nodes, it knows
only about Event Targets.

In the old days (Gecko 1.8.x and earlier) recursion was used to dispatch 

Received on Tuesday, 19 May 2009 07:37:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:14 UTC