Slotable

The Slotable mixin defines features that allow nodes to become the contents of a <slot> element — the following features are included in both Element and Text.

Properties

Slotable.assignedSlot Read only
Returns the <slot> the node is inserted in.

Methods

None.

Specifications

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

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support53 No1

592

Yes — 593

No4010.1
assignedSlot53 No1

592

Yes — 593

No4010.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5353 No1

592

Yes — 593

4010.16.0
assignedSlot5353 No1

592

Yes — 593

4010.16.0

1. Under consideration

2. From version 59: this feature is behind the dom.webcomponents.shadowdom.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

3. Until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.shadowdom.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Document Tags and Contributors

 Contributors to this page: ExE-Boss, chrisdavidmills
 Last updated by: ExE-Boss,