summaryrefslogtreecommitdiffstats
path: root/layout/reftests/selection/shadow-tree-order-1-ref.html
blob: 4651a2c6fd603d4c3565e66ee92ff368e821a6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<p>Something to <span>find</span> above</p>
<p>Something to <span>find</span> in the shadow</p>
<p>Something to <span>find</span> below</p>
<script>
  let selection = getSelection();
  selection.removeAllRanges();
  for (let span of document.querySelectorAll("span")) {
    let range = document.createRange();
    range.selectNode(span);
    selection.addRange(range);
  }
</script>