Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<div>
in shadow
<span id="slot1">--slotted 1--</span>
<div>
in nested shadow
<span id="slot2">--slotted 2--</span>
in nested shadow
</div>
in shadow
</div>
<script>
window.getSelection()
.setBaseAndExtent(slot1.firstChild, 3, slot2.firstChild, 7);
</script>