Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/remve-documentElement-after-inserthtml-svg-and-td.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
addEventListener("load", () => {
document.querySelector("div[contenteditable]").focus();
document.execCommand("inserthtml", false, "<svg><td>");
document.documentElement.remove();
});
</script>
</head>
<body><div contenteditable></div></body>
</html>