--- title: Element.assignedSlot slug: Web/API/Element/assignedSlot translation_of: Web/API/Slottable/assignedSlot translation_of_original: Web/API/Element/assignedSlot ---
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
The assignedSlot
property of the {{domxref("Element")}} interface returns the {{domxref("HTMLSlotElement")}} interface associated with the element.
var htmlSlotElement = element.assignedSlot
An instance of {{domxref("HTMLSlotElement")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName('DOM WHATWG','#dom-slotable-assignedslot','assignedSlot')}} | {{Spec2('DOM WHATWG')}} |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(53.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(53.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatChrome(53.0)}} |