W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2015

Re: Callback when an event handler has been added to a custom element

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Fri, 6 Nov 2015 16:38:33 -0500
To: public-webapps@w3.org
Message-ID: <563D1DD9.4010205@mit.edu>
On 11/6/15 3:44 PM, Olli Pettay wrote:
> You need to override addEventListener on EventTarget, and also relevant
> onfoo EventHandler setters on Window and Document and *Element prototypes

Are we trying to just do this best-effort, or reliably?  Because this:

  var ifr = document.createElement("iframe");
  document.body.appendChild(ifr);
  ifr.contentWindow.EventTarget.prototype.addEventListener.call(myNode, 
whatever);

is obviously hard to handle without serious effort...

-Boris
Received on Friday, 6 November 2015 21:39:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:58 UTC