summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1517028.html
blob: cbc3b71c0a63cd9a0b9bc2af9373538848068465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- COMMENT -->
abc
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
  // For emulating the traditional behavior, collapse Selection to end of the
  // <em> which is the deepest last child of the <body> (at the comment node).
  getSelection().collapse(
    document.querySelector("em[contenteditable]"),
    document.querySelector("em[contenteditable]").childNodes.length
  );
  document.execCommand("justifyLeft");
  document.designMode = 'on';
  document.execCommand("insertParagraph");
});
</script>
</head>
<h4>
<em contenteditable>
<big>
<button autofocus formnovalidate formtarget="">
</button>
<!-- COMMENT --></big></em></h4></body>