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

Specification
DOM Standard
# dom-slotable-assignedslot

Browser compatibility

BCD tables only load in the browser