DOM Level 3 Event's some weird stuff....

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

Hi all,

I'm currently about to implement the Events module in my reference 
implementation. I just noticed that the Event interface covers an readonly 
attribute "currentTarget" of type "EventTarget", now, the derived interface 
CustomEvent covers a function called setCurrentTarget getting a parameter 
target of type "Node" which should be set to the "currentTarget" of type 
"EventTarget". 

Is this true???
I really can't imagine that they're not joking.

I'd prever an setCurrentTarget function getting a parameter of type 
"EventTarget".

Of course, in C++ I can use the RTTI's dynamic_cast feature, but to 
dynamically cast (and test) the Node to an EventTarget (and check whether it 
has this interface or not). But this can't be the case since this is not 
really a good resolution.

Furthermore:

The EventTarget's function addEventListener.addEventListenerXX does only put 
the new listener into the list if it is unique, other wise the duplicate is 
discarded. What duplicate? The old one or the new one? And, what's equality 
in the EventListener's object? Must the EventListener be of the same 
interface? or even the same instance (object)?

Best regards,
Chrisitan Parpart.

p.s.: I do not like the "Out Of Office" aproval thing, is there a way to work
      around?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9mkf1Ppa2GmDVhK0RAikpAJ9qbYLq09LyjEsElXleMw4yy0iIJwCeNyEi
4To9Md8zsLZzFixbNhxsO6E=
=4Dow
-----END PGP SIGNATURE-----

Received on Tuesday, 1 October 2002 21:13:00 UTC