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

Fwd: DOM Level 3 Events

From: Emanuele D'Arrigo <manu3d@gmail.com>
Date: Mon, 18 May 2009 23:27:13 +0100
Message-ID: <915dc91d0905181527v679c7ddbpff92c8be9726b039@mail.gmail.com>
To: "www-dom@w3.org" <www-dom@w3.org>
2009/5/18 Boris Zbarsky <bzbarsky@mit.edu>

> I'm not sure what the ambiguity is.  The DOM3 Events drafy clearly says:
>  The target's ancestors are determined before the initial dispatch of
>  the event. If the target node is removed during the dispatching, or
>  a target's ancestor is added or removed, the event propagation will
>  always be based on the target node and the target's ancestors
>  determined before the dispatch. [1]
> DOM2 events has similar wording.
> What's ambiguous?

The paragraph isn't. It's just that it's not clear which object is intended
to be driving the event dispatch. It could be the Document object iterating
through the event targets or the event targets could pass the event to each
other in a chain. The second option would be feasible if the implementation
loads the event with the propagation path. I guess it's an implementation
detail but I was wondering if there was an "intended" way to do it...

Received on Monday, 18 May 2009 22:28:08 UTC

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