cross-shadow-boundary-3-ref.html (304B)
1 <!doctype html> 2 OuterText 3 <div id="host1">innerText1</div> 4 OuterText 5 <div id="host2">innerText2</div> 6 <script> 7 const host1 = document.getElementById("host1"); 8 const host2 = document.getElementById("host2"); 9 10 getSelection().setBaseAndExtent( 11 host1.firstChild, 3, host2.firstChild, 3); 12 </script>