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

DOMSubtreeModified event

From: David Flanagan <david@oreilly.com>
Date: Tue, 21 Aug 2001 20:14:10 -0700
Message-Id: <200108220314.UAA02104@oxymoron.oreilly.com>
To: www-dom@w3.org

The MutationEvents module says this about the DOMSubtreeModified event:

    This is a general event for notification of all changes to the
    document. It can be used instead of the more specific events listed
    below. It may be fired after a single modification to the document
    or, at the implementation's discretion, after multiple changes have
    occurred.  The latter use should generally be used to accomodate
    multiple changes which occur either simultaneously or in rapid
    succession.

I read this to say that an implementation can support the MutationEvents
module even if it never fires anything more specific than
DOMSubtreeModified events.  Furthermore, although it is not recommended,
an implementation may legally choose to fire an event of this type only
after every 100 modifications to the document, or every 30 seconds if
any changes have happened during that interval.

Am I reading this correctly?

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? 

       David
Received on Wednesday, 22 August 2001 00:08:48 GMT

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