des(document.getSelection());

        const button1 = document.querySelector("#button1");
        document.getSelection().collapse(button1);

        printSelectionNodes(document.getSelection());

        const rootElement = document.getElementById("root");
        const shadowRoot = rootElement.attachShadow({ mode: "open" });
        const button2 = document.createElement("button");
        button2.id = "button2";
        shadowRoot.appendChild(button2);
        document.getSelection().collapse(button2);
