Back to Chromium

Dispatching to a Function Object Implementing handleEvent()

third_party/blink/web_tests/fast/events/dispatch-to-function-with-handle-event.html

149.0.7827.2253 B
Original Source

When the listener passed to addEventListener() is a function, it should be called when the event occurs. The listener function should not be tested for adherence to the EventListener interface and have its handleEvent() method called if present.