Newer
Older
minerva / Tests / LibWeb / Text / input / Selection-setBaseAndExtent-without-common-root.html
@minerva minerva on 13 Jul 360 bytes Initial commit
<body>
<script src="include.js"></script>
<script>
    test(() => {
        let newDoc = document.implementation.createHTMLDocument("foo");
        let newDocP = newDoc.createElement("p");
        let selection = window.getSelection();
        selection.setBaseAndExtent(document.body, 0, newDocP, 0);
        println("PASS (Didn't crash)");
    });
</script>