Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/insertparagraph-in-listitem-in-svg-followed-by-collapsible-spaces.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="timeout" content="long">
<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>
/>
</foreignObject></svg><p>
<input>
</p>
<title>This test takes long time due to the long white-spaces are required</title>
</body></html>