tachShadow({ mode: "open" });
                let new_host = document.createElement("div");
                root.appendChild(new_host);
                current_host = new_host;
            }

            let root_of_tree = current_host.getRootNode({ composed: true });
            assert_equals(root_of_tree.id, "original-host");
        }, "Calling Node.getRootNode in a deeply nested shadow tree must return the correct result without crashing");
    </script>
</body>
</html>
