Skip to content

Truly independent web browser

546 B
Raw Blame
<!DOCTYPE html>
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-417">
<style>
::selection {
    background-color: rgba(61, 174, 233, 0.5);
    color: black;
}
</style>
<!-- here the end node contains the start node, as well as some further selected content and some non-selected content. -->
<span id="end">End Node <span id="start">Start</span> <span>Node</span> </span>NOT SELECTED
<script>
  let range = document.createRange();
  range.setStart(start, 0);
  range.setEnd(end, 4);
  window.getSelection().addRange(range);
</script>