← Back to release summary

addEventListener AddEventListenerOptions API

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 52)
Intent stage
None

Summary

EventListenerOptions API was added in https://www.chromestatus.com/features/5718574840676352 The spec was revised to add AddEventListenerOptions which is a dictionary only for addEventListener(...) so that fields could be added that did not make up the matching key. This change is to move the add the AddEventListenerOptions dictionary definition, change the API and move the 'passive' field from EventListenerOptions to AddEventListenerOptions

Standards & signals

Docs: https://github.com/WICG/EventListenerOptions/issues/27 Relevant spec changes: https://github.com/whatwg/dom/commit/e002d7811533e276c9927b237748c4e170f4cb10 https://github.com/whatwg/dom/commit/a13a3c7fc14732691b50c51316b16de0915a61f2

View on chromestatus.com