blob: a40389169511f01e6b8946ad9bb395d1a9a2c0ba [file] [log] [blame]
"use strict";
test(() => {
const doc = document.cloneNode(document);
doc.write('<div><template shadowrootmode=open>test</template></div>');
assert_true(!!doc.body.firstChild.shadowRoot);
assert_equals(doc.body.firstChild.shadowRoot.textContent, "test");
}, "cloneNode() and document's allow declarative shadow roots");