addEventListener/removeEventListener EventListenerOptions API

Add an additional API to addEventListener/removeEventListener which takes EventListenerOptions dictionary. void [add|remove]EventListener(DOMString type, EventListener listener, EventListenerOptions options); Currently other platforms (Gecko) add additional booleans to the argument list to modify the behavior of the added event listeners. We'd like to turn this into a dictionary (EventListenerOptions) so that is a more flexible API for future work.


Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 49
  • Chrome for Android release 49
  • Android WebView release 49

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Last updated on 2018-01-19