Skip to content

Commit 82b5f7c

Browse files
committed
cloneNode() and document's allow declarative shadow roots
For whatwg/dom#1384.
1 parent a6ebf4f commit 82b5f7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"use strict";
2+
3+
test(() => {
4+
const doc = document.cloneNode(document);
5+
doc.write('<div><template shadowrootmode=open>test</template></div>');
6+
assert_true(!!doc.body.firstChild.shadowRoot);
7+
assert_equals(doc.body.firstChild.shadowRoot.textContent, "test");
8+
}, "cloneNode() and document's allow declarative shadow roots");

0 commit comments

Comments
 (0)