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

Event Handler Attribute

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 23 Dec 2010 18:55:39 -0800
Message-ID: <AANLkTinuhquHCPEvZALmYw+9cagdL3ZCw8kmD8hHKUaA@mail.gmail.com>
To: DOM mailing list <www-dom@w3.org>
Where is the `thisArg` specified in D3E? Context for event handler
properties or eventListeners registered with addEventListener is
generally set to the object on which the callback has been set on.

  document.body.addEventListener("click", f, false);

  function f() {
    alert( this === document.body );

That behavior should be specified somewhere, and if not in D3E, then
somewhere that D3E links to, like HTML5.
Received on Friday, 24 December 2010 02:56:13 UTC

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