slot

The slot JS Element returns the value of element’s slot content attribute. Can be set to change it.

Syntax

element.slot [ = value ]

Examples

1 · get

2 · set

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu