Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit db770bd

Browse files
annevkmoz-wptsync-bot
authored andcommitted
Bug 1973523 [wpt PR 53323] - cloneNode() and document's allow declarative shadow roots, a=testonly
Automatic update from web-platform-tests cloneNode() and document's allow declarative shadow roots For whatwg/dom#1384. -- wpt-commits: 129b2b90e28996ed1bf234f7efd5da998f18474f wpt-pr: 53323
1 parent 07c676c commit db770bd

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)