W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

Re: ISSUE-72: should XMLHttpRequest be an EventTarget?

From: Robin Berjon <robin.berjon@expway.fr>
Date: Sun, 9 Apr 2006 23:54:51 +0200
Message-Id: <E133D2EB-9670-4C3A-9D96-926FCD4B7665@expway.fr>
Cc: Web APIs WG <public-webapi@w3.org>
To: Jonas Sicking <jonas@sicking.cc>

On Apr 09, 2006, at 15:27, Jonas Sicking wrote:
> So what type should we put in the IDL that works for both  
> ECMAScript and Java? (or do you have a link to where someone  
> already explained it?)

It's all done at the binding level, so I'm not sure it's a solution  
that IDL-based implementations like Mozilla would like. Just look at  
where it says: "Object EventListener: This is an ECMAScript function  
reference" (the second bound interface). And handleEvent is not exposed.

So supposedly, if we are to be consistent with DOM Events, all  
objects of type EventListener are expected to be bound to Function  
anyway (though I would prefer to expose handleEvent on it).

Robin Berjon
    Senior Research Scientist
    Expway, http://expway.com/
Received on Sunday, 9 April 2006 21:54:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC