W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2010

Re: Event Handler Attribute

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 24 Dec 2010 17:01:49 +1300
To: Doug Schepers <schepers@w3.org>
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, DOM mailing list <www-dom@w3.org>
Message-ID: <20101224040149.GA4751@wok.mcc.id.au>
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).

Web IDL has a spec language hook for this:


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.

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 24 December 2010 04:02:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:16 UTC