summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1623166.html
blob: 75bbb20872a767c43f894322bc0980304589f012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
  const code = document.querySelector("code[contenteditable=false]");
  // For emulating the traditional behavior, collapse Selection to end of the
  // last text node in the <code> which is the last inline container of the
  // <body>.
  getSelection().collapse(code.lastChild, code.lastChild.length);
  code.querySelector("br").contentEditable = true;
  document.execCommand("indent");
});
</script>
<body>
<b contenteditable hidden>
    <script></script>
    <code contenteditable="false">
        <br>
</body>
</head>
</html>