W3cubDocs

/Web APIs

Text: assignedSlot property

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

Value

An HTMLSlotElement, or null if no <slot> element is associated with the text node.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
assignedSlot 53 79 63 No 40 10 53 53 63 41 10 6.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot