1
0
Fork 0
firefox/testing/web-platform/tests/selection/shadow-dom/cross-shadow-boundary-3-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

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>