summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/1887963_1.html
blob: fbc30dc587ffa160c3d9e84f46c94d1eab0c2b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
document.addEventListener("DOMContentLoaded", () => {
  let c = a.attachShadow({mode: "open"})
  let b = document.getElementById("host").shadowRoot.getElementById("b");
  window.parent.getSelection().setBaseAndExtent(b, 0, c, 0)
})
</script>
<div id="a">A</div>
<video>
  <div id="host">
    <template shadowrootmode="open">
      <video id="b">
    </template>
  </div>
</video>