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
.
var composed = Event.composed;
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.
Specification | Status | Comment |
---|---|---|
DOM The definition of 'composed' in that specification. | Living Standard |
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