summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/remove-editing-host-which-is-selected.html
blob: 06ee6dc5059f561d71089fcdfb10d58e9795cc3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<meta charset="utf-8">
<script>
window.onload = () => {
  let s = window.getSelection()
  let r = document.createRange()
  r.selectNode(document.getElementById('b'))
  s.addRange(r)
  r = document.createRange()
  r.selectNode(document.getElementById('a'))
  s.addRange(r)
  document.documentElement.innerHTML = ''
}
</script>
<body id='a' contenteditable='true'>
<canvas tabindex='0'>
<audio id='b'>