summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/insertparagraph-in-listitem-in-svg-followed-by-collapsible-spaces.html
blob: f5f981965ba99aaf1f9ab0965238222094114a77 (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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
  document.querySelector("svg").insertAdjacentText("afterend", `\n${" ".repeat(336860180)}`);

  document.designMode = "on";
  getSelection().selectAllChildren(document.querySelector("input"));

  document.querySelector("li").appendChild(document.querySelector("p"));
  document.execCommand("outdent");
  document.execCommand("insertOrderedList");
  document.execCommand("insertParagraph");
});
</script>
</head>
<body>
<svg>
  <foreignObject>
    <li></li>
/&gt;
  </foreignObject></svg><p>
  <input>
</p>
<title>This test takes long time due to the long white-spaces are required</title>
</body></html>