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.


var htmlSlotElement = text.assignedSlot


HTMLSlotElement object.


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

Browser Compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 53Edge Full support YesFirefox Full support YesIE ? Opera Full support 40Safari Full support 10.1WebView Android Full support 53Chrome Android Full support 53Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 40Safari iOS Full support 10.1Samsung Internet Android ?


Full support  
Full support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: fscholz, DomenicDenicola, david_ross, jpmedley
Last updated by: fscholz,