Re: Event Handler Attribute

Hi, Cam-

Cameron McCormack wrote (on 12/23/10 11:01 PM):
> Hi Doug.
>
> Garrett Smith:
>>  >  That behavior should be specified somewhere, and if not in D3E, then
>>  >  somewhere that D3E links to, like HTML5.
>
> Doug Schepers:
>>  DOM3 Events doesn't define script execution (in fact, it tries to be
>>  language-neutral, and should work with Java as well as Javascript).
>
> I agree with Garrett it needs to be defined somewhere.  The DOM 3 Events
> spec itself seems most appropriate, since this is specifically for
> when EventListeners are invoked (and not for all callbacks in general).

I see.


> Web IDL has a spec language hook for this:
>
>    http://dev.w3.org/2006/webapi/WebIDL/#dfn-callback-this-value
>
> So if Web IDL were being used, you could say something like:
>
>    When invoking an EventListener implemented in ECMAScript, its
>    _callback this value_ must be the target of the event.
>
> But even without that, it’d just be a simple matter of noting what
> ‘this’ must be bound to when invoking the EventListener.

I was considering using Web IDL bindings anyway, so if you will work 
with me to get that done quickly and correctly, I'm willing to do so.

Regards-
-Doug Schepers
W3C Team Contact, SVG, WebApps, and Web Events WGs

Received on Wednesday, 5 January 2011 22:03:25 UTC