HTMLSlotElement.assignedSlot

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

The assignedSlot property of the Text interface returns the HTMLSlotElement object associated with the element.

Syntax

var htmlSlotElement = text.assignedSlot

Value

A HTMLSlotElement object.

Specifications

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

Browser Compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
assignedSlotChrome Full support 53Edge Full support ≤18Firefox Full support YesIE ? Opera Full support 40Safari Full support 10.1WebView Android Full support 53Chrome Android Full support 53Firefox Android Full support YesOpera Android Full support 41Safari iOS Full support 10.3Samsung Internet Android Full support 6.0

Legend

Full support
Full support
Compatibility unknown
Compatibility unknown