Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/delete-after-empty-script-element.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
A
<script>
addEventListener("load", () => {
document.documentElement.contentEditable = true;
getSelection().collapse(document.body.lastChild, document.body.lastChild.length);
document.execCommand("delete");
});
</script>
<li>
<form readonly contenteditable>
</form>
<script>
</script></li></body></html>