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

Re: Clarification on EventTarget removal for DOM Events

From: Philippe Le Hegaret <plh@w3.org>
Date: 02 Feb 2003 10:58:05 -0500
To: "Alexander J. Vincent" <ajvincent@hotmail.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1044201485.1049.15.camel@chacal>

On Fri, 2003-01-31 at 11:40, Alexander J. Vincent wrote:
> I've noticed an issue regarding DOM Events, Levels 2 and 3, which is not 
> clear in the specifications.
> For event capturing and bubbling, if the actual target (or an ancestor node 
> of the actual target) is removed or replaced, the specs do not state the 
> correct behavior of the Event object.  I'd like a clarification on whether 
> the Event object should continue to propagate, should bubble later, should 
> throw a strict warning or DOM exception, etc.

It is defined in the Events specification, even if it is in the capture
phase description but still applies for the entire event propagation:
The chain of EventTargets from the top of the tree to the event's target
is determined before the initial dispatch of the event. If modifications
occur to the tree during event processing, event flow will proceed based
on the initial state of the tree.

Received on Sunday, 2 February 2003 10:58:17 UTC

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