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

9 lines
198 B
HTML

<!doctype html>
<html>
<div>CONTENT</div>
<script>
const div = document.querySelector("div");
getSelection().setBaseAndExtent(div.firstChild, 0, div.firstChild, 2);
</script>
</html>