summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/1655988.html
blob: 666a5f8cb8475d1307ac99e7beacd3762920f380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script>
document.addEventListener("DOMContentLoaded", () => {
  // For emulating the traditional behavior, collapse Selection to end of the
  // text node at end of the <body> (end of the text node after the
  // <feDistantLight>).
  getSelection().collapse(
    document.body.lastChild,
    document.body.lastChild.length
  );
  const feDistantLight = document.querySelector("feDistantLight");
  const li = document.querySelector("li");
  li.after('foo');
  feDistantLight.addEventListener("DOMAttrModified", () => {
    window.find("foo");
    document.execCommand("insertImage", false, "#");
  })
  feDistantLight.setAttribute("i", "");
});
</script>
</head>
<body>
<feDistantLight contenteditable>
    <li>A</li>
    <!-- COMMENT -->
</feDistantLight>
</body>
</html>