W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: DOMSubtreeModified event

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 22 Aug 2001 09:35:09 -0400
To: David Flanagan <david@oreilly.com>
Cc: www-dom@w3.org
Message-ID: <OF64BFBF73.C9EEA72D-ON85256AB0.004946D0@pok.ibm.com>

>I read this to say that an implementation can support the MutationEvents
>module even if it never fires anything more specific than
>DOMSubtreeModified events

No. DOMSubtreeModified is fired in addition to more specific mutation
events. The intent was to indicate that some applications may find that
listening only for DOMSubtreeModified suffices for their needs.

>Is the intent that when a call to a single DOM method such as
>Range.extractContents() causes many mutation events this event is the
>one that is fired last, as kind of a summary of all changes that have
>occurred?

As I read/remember it: Yes and no. The only promise made is that
DOMSubtreeModified will eventually be fired after the DOM has been altered.
It may be more often, or less often,  than once per DOM method call, " at
the implementation's discretion." I expect that most implementations will
tend to favor the once-per-method interpretation, but that may not be
convenient for the logic of some, and may be overkill for others which know
these method calls are part of a higher-level operation.

______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 22 August 2001 09:37:48 GMT

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