This is an experimental technologyCheck 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 |
DOMThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
assignedSlot
|
Chrome
Full support 53 |
Edge
Full support ≤18 |
Firefox
Full support Yes |
IE
No support No |
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
- No support
- No support
HTMLSlotElement.assignedSlot by Mozilla Contributors is licensed under CC-BY-SA 2.5.