Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /selection/shadow-dom/cross-shadow-boundary-select-document.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<link rel=match href="cross-shadow-boundary-select-document-ref.html">
</head>
<div></div>
<script>
const root = document.querySelector("div").attachShadow({mode: "open"});
root.innerHTML = "CONTENT";
getSelection().setBaseAndExtent(document, 0, root.firstChild, 2);
</script>
</html>