[whatwg/dom] "callback is listener’s callback" (#842)

https://dom.spec.whatwg.org/commit-snapshots/b4e91f539a5b743a31d5497e75a8bc4726520b7b/#ref-for-event-listener-callback①①


> callback is listener’s callback,

Strictly speaking, I think this will never be true. Each incoming call to addEventListener creates a new EventListener instance wrapping the JavaScript object or method.

To make this work as intended, I believe you need to reference the EventListener's "object reference" from https://heycam.github.io/webidl/#idl-callback-interface. (And to do that properly, we should probably give it a proper `<dfn>` in Web IDL.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/842

Received on Sunday, 8 March 2020 07:52:02 UTC