cross-shadow-boundary-select-document-ref.html (198B)
1 <!doctype html> 2 <html> 3 <div>CONTENT</div> 4 <script> 5 const div = document.querySelector("div"); 6 getSelection().setBaseAndExtent(div.firstChild, 0, div.firstChild, 2); 7 </script> 8 </html>