cross-shadow-boundary-select-document.html (341B)
1 <!doctype html> 2 <html> 3 <head> 4 <link rel=match href="cross-shadow-boundary-select-document-ref.html"> 5 </head> 6 <div></div> 7 <script> 8 const root = document.querySelector("div").attachShadow({mode: "open"}); 9 root.innerHTML = "CONTENT"; 10 getSelection().setBaseAndExtent(document, 0, root.firstChild, 2); 11 </script> 12 </html>