<script src="include.js"></script>
<button id="button1"></button>
<div id="root"></div>
<script>
    function printSelectionNodes(selection) {
        if (selection.anchorNode) {
            println(`${selection.anchorNode.id}`);
        } else {
            println(`${selection.anchorNode}`);
        }
        if (selection.focusNode) {
            println(`${selection.focusNode.id}`);
        } else {
            println(`${selection.focusNode}`);
        }
    }

    test(() => {
        printSelectionNo