--- 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.

Syntax

var htmlSlotElement = element.assignedSlot

Value

An instance of {{domxref("HTMLSlotElement")}}.

Specifications

Specification Status Comment
{{SpecName('DOM WHATWG','#dom-slotable-assignedslot','assignedSlot')}} {{Spec2('DOM WHATWG')}}

Browser Compatibility

{{CompatibilityTable}}
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)}}