Vous lisez la version anglaise de ce contenu car il n’existe pas encore de traduction dans cette langue. Aidez-nous à traduire cet article !

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 AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
assignedSlotChrome Full support 53Edge Full support YesFirefox 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 Yes


Full support  
Full support
Compatibility unknown  
Compatibility unknown