Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

attachShadow

Description

The attachShadow JS Element creates a shadow root for element and returns it.

Syntax

shadow = element.attachShadow(init)

Parameters

init

Initialize

Examples

1 · closed

2 · open

shadowRoot

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu