HTML Attributes

HTML shadowrootclonable attribute

Requests that a declaratively created shadow root can be cloned when its host is cloned or imported through supported DOM operations. Applicable elements include: <template>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off.

Formal Syntax & Structure

html syntaxhtml
shadowrootclonable

Parameters & Attributes

NameTypeDescription
shadowrootclonablebooleanRequests that a declaratively created shadow root can be cloned when its host is cloned or imported through supported DOM operations.

Working Example

Example Snippethtml
<div>  <template shadowrootmode="open" shadowrootclonable>    <span>Cloneable content</span>  </template></div>
HTML Reference