Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/formatblock-when-root-is-editing-host.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";
document.addEventListener("DOMContentLoaded", () => {
document.documentElement.contentEditable = "true";
document.execCommand("formatBlock", false, "h3");
}, {once: true});
</script>
</head>
<body>
text
<!-- no-final-newline -->