Gerd Mueller wrote:
> But if I understand the specification and the implementation of Xerces right I
> have to add event listeners for _each_ mutation event type to _every_ node of
> the tree to be notified of any mutation - is this right ?

Events in the DOM can "bubble" up the tree. Section 6.2.3 of the
candidate recommendation specification describes how this works.
But the important thing is that you only have to register your
listener on the root and not on *every* node.

Section 6.6.4 from the specification tells you which MutationEvents
bubble up the tree. Some don't. For the others, you should be able
to register your event listener on the root of the tree and receive
the notification.

If our implementation doesn't behave the way that the spec details,
then we need to know so that it can be fixed by someone. For more
information on DOM Level 2 events, check out the specification at
the following link: http://www.w3.org/TR/DOM-Level-2/events.html

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to