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

Question about Xml Events (Level 2)

From: Kevin Yancey <kevin.yancey@ecathexis.com>
Date: 06 Aug 2003 17:13:28 -0400
Message-ID: <000801c357dd$84fc1dd0$6801a8c0@KPYHOME>
To: <www-dom@w3.org>
After reading the specification, I'm a little confused about how events work for nodes such as attributes or documentFragments.  The specification says that all Nodes implement the EventTarget interface.  However, attributes and document fragments aren't a part of the document tree, according to the DOM Core specification.  So, for instance, what does it mean if one calls dispatchEvent on an attribute node?  Should the event be dispatched with the attribute's element as the 'parent' node, should some sort of exception be thrown, or should the attribute node implement EventTarget at all?

Kevin P. Yancey
Received on Wednesday, 6 August 2003 19:40:36 GMT

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