trisquel-icecat/icecat/testing/web-platform/mozilla/tests/selection/cross-shadow-boundary-slot-3-ref.html
2025-10-06 02:35:48 -06:00

15 lines
352 B
HTML

<!doctype html>
<span id="outer">Outer</span>
<div>
<span>Inner</span>
<div>
<span id="slotted">Slotted</span>
<span id="nested">Nested</span>
</div>
</div>
<script>
const start = outer.firstChild;
const end = document.getElementById("slotted").firstChild;
window.getSelection()
.setBaseAndExtent(start, 3, end, 4);
</script>