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

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