summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1446451.html
blob: 56c887dc3b9558921e787a0f15adaae292e517d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script>
function onLoad() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // text node in the <dialog> which is the deepest last child of the <body>.
  const dialog = document.querySelector("dialog");
  getSelection().collapse(dialog.lastChild, dialog.lastChild.length);
  document.execCommand("insertImage", false, "o")
}
</script>
<body onload="onLoad()">
<meter contenteditable>
<dialog>
</dialog></meter></body>