Event.path is a non-standard API that returns the event's path, which is an array of the objects on which listeners will be invoked. It is supported by Blink only, causing web compatibility issues. Web developers should switch to the equivalent standard API Event.composedPath(), which returns the same result.

Motivation

Event.path is a non-standard API currently only supported by Blink, and hence, causing compatibility issues on other browsers. Hence, we are deprecating this feature, and encourage web developers to switch to the standard method Event.composedPath().

Status in Chromium

Blink>DOM


Enabled by default (tracking bug)

Consensus & Standardization

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

  • No signal
  • No signal
  • Positive

Owner

Comments

Existing pages may use the following polyfill to keep functions: if (!Event.prototype.path) { Object.defineProperty(Event.prototype, 'path', { get() { return this.composedPath(); } }); }

Last updated on 2022-05-13