Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/change-from-contenteditable-to-design-mode.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
addEventListener("DOMContentLoaded", () => {
getSelection().selectAllChildren(document.body);
getSelection().removeAllRanges();
document.designMode = "on";
}, {once: true});
</script>
<body contenteditable></body>
</html>