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

Re: DOM L2 comments, various

From: David Brownell <david-b@pacbell.net>
Date: Tue, 28 Sep 1999 09:18:34 -0700
Message-ID: <37F0EA5A.7731CC60@pacbell.net>
To: www-dom@w3.org
MutationEvents in 6.6.4 ... consider a Document, with one Element.  That
Element has an Attr object which has one child, a Text node.

Now let's say that text node gets modified.  What events will fire?

   In the Attribute's tree
	- DOMCharacterDataModified, delivered to the text node
	- DOMSubtreeModified, delivered to the attribute

   In the Element's tree
	- DOMAttrModified, delivered to the element
	- DOMSubtreeModified, delivered to the element

Within each tree, bubbling and capturing apply.

Q:  Is that right?
A:	...

SUGGESTION:  The text should make clear that a document isn't the only
example given of the "top of a subtree". DocumentFragments and Attributes,
plus disconnected elements, are other common cases.

Also, the lack of examples I think hurts this section.

- Dave
Received on Tuesday, 28 September 1999 12:19:12 UTC

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