trisquel-icecat/icecat/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html

12 lines
304 B
HTML

<!doctype html>
OuterText
<div id="host1">innerText1</div>
OuterText
<div id="host2">innerText2</div>
<script>
const host1 = document.getElementById("host1");
const host2 = document.getElementById("host2");
getSelection().setBaseAndExtent(
host1.firstChild, 3, host2.firstChild, 3);
</script>