{{APIRef('Shadow DOM')}} {{Non-standard_header}}
The HTMLSlotElement
interface of the Shadow DOM API defines the location of a slot.
Properties
- {{domxref('HTMLSlotElement.name')}}
- Returns or sets the slot name. A slot is a placeholder inside a web component that users can fill with their own markup.
Methods
- {{domxref('HTMLSlotElement.assignedNodes()')}}
- Returns the sequence of elements assigned to this slot or alternatively the slots fallback content..
-
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Shadow DOM','#the-slot-element','HTMLSlotElement')}} | {{Spec2('Shadow DOM')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(53.0)}} | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatNo}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(53.0)}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatChrome(53.0)}} |