W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2003

EventTarget and EventListenerGroup

From: Christian Parpart <cparpart@surakware.net>
Date: Sat, 22 Feb 2003 05:11:06 +0100
To: www-dom@w3.org
Message-Id: <200302220511.07806.cparpart@surakware.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

yet another issue on my list I can't solve belong the the DOM Level 3 
Events Module.

What phase is entered first? I guess 1.) AT_TARGET, 2.) BUBBLING_PHASE, 
and 3.) CAPTURING_PHASE. But I didn't find any pharagraph that mentioned 
this. Also, this is the easiest way to propagate the event through the 
event-targets.

Can a EventListenerGroup contain EventListeners for different EventTargets?
This is an important issue since this would heavily change the implementation 
part.

the EventListenerGroup.isSameEventListenerGroup(grp) function returns true if 
this is really the same event listener group. but would this be even possible 
to test by comparing their pointers like in C++ as follows?

EventListenerGroup *evg1 = myDocument->createEventListenerGroup();
EventListenerGroup *evg2 = myDocument->createEventListenerGroup();
/* ... */
if (evg1 == evg2) ; /* pointer comparison: are they the very same thing? */
if (evg1->isSameEventListenerGroup(evg2)) ; /* your method: like above? */
/* the end */

Best regards,
Christian Parpart.
Please CC me also to trapni@gmx.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+VvhaPpa2GmDVhK0RAtJOAJ9Q9K1F9v4+ZtzBR7XUeQmQWnvlzwCgh9uC
h4g1Kawp0iRpbOmaJLS9VLQ=
=KM+Y
-----END PGP SIGNATURE-----
Received on Saturday, 22 February 2003 14:35:58 GMT

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