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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
assignedSlot | Chrome Full support 53 | Edge Full support ≤18 | Firefox Full support Yes | IE ? | Opera Full support 40 | Safari Full support 10.1 | WebView Android Full support 53 | Chrome Android Full support 53 | Firefox Android Full support Yes | Opera Android Full support 41 | Safari iOS Full support 10.3 | Samsung Internet Android Full support 6.0 |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
