W3cubDocs

/DOM

Event.composed

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The read-only composed property of the Event interface returns a Boolean which indicates whether or not the event will propagate across the shadow DOM boundary into the standard DOM.

This property was formerly named scoped.

Syntax

var composed = Event.composed;

Value

A Boolean which is true if the event will cross from the shadow DOM into the standard DOM after reaching the shadow root (that is, the first node in the shadow DOM in which the event began to propagate). Of course, propagation only occurs at all if the bubbles property is also true. You can determine the path the event will follow as it makes its way through the shadow root to the DOM root by calling composedPath().

If this value is false, the shadow root will be the last node to be offered the event.

Specifications

Specification Status Comment
DOM
The definition of 'composed' in that specification.
Living Standard

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 53.0 ? 52 (52) ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support 53.0 52.0 (52) ? ? ? ? 53.0

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Event/composed