← Back to release summary

Shadow root clonable attribute

Category
DOM
Type
Chromium catches up
Status
In developer trial (Behind a flag) (Chrome 124)
Intent stage
None

Summary

This enables individual control over whether a shadow root is clonable (via standard platform cloning commands such as `cloneNode()`). Imperative shadow roots can now be controlled via a parameter to `attachShadow({clonable:true})`. Declarative shadow roots can be controlled via a new attribute, `<template shadowrootmode=open shadowrootclonable>`.

Standards & signals

View on chromestatus.com