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

Re: DOM2 implementation questions

From: Thierry Kormann <Thierry.Kormann@sophia.inria.fr>
Date: Wed, 12 Jan 2000 09:58:44 +0100
Message-Id: <200001120858.JAA28961@quokka.inria.fr>
To: Raph Levien <raph@onan.artofcode.com>
cc: www-dom@w3.org, gdome-list@rpmfind.net, Thierry.Kormann@sophia.inria.fr
Hi,

> EventTarget::removeEventListener
> 
> What happens if there are two listeners A and B on a target, and A
> removes B? Is B guaranteed to be called?

yes. The chain of EventListeners is determined _before_ the initial dispatch. 
i.e: your
EventListener list is "cloned" at the beginning of the dispatch process.

> What if A and B are bubble listeners on an an ancestor of the target?

same.

> What if A and B are bubble listeners on two different ancestors of the
> target (B ancestor of A)?

The ancestor listener won't be called in bubbling phase. Notice that in 
capturing phase
it's the child listener that won't be called.

> Attr::value
> 
> What is the difference between Attr::nodeValue and Attr::value?

It's the same. The first method is a generic one from Node and the second
one has a convenient syntax  for the attributes.

> Node::normalize
> 
> What events are appropriate? Deletion of additional Text nodes
> followed by mutation of the first Text node? (this is what I percieve
> to be the reverse of Text::splitText).

Don't  know. Your solution sounds good.

In our implementation, we call Node::removeChild then Node::appendChild.
The events are the ones posted by those 2 methods but I don't know
if it's the solution.

Thierry.

-- 
Thierry Kormann
email: Thierry.Kormann@sophia.inria.fr  http://www.inria.fr/koala/tkormann/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis
Received on Wednesday, 12 January 2000 03:59:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT