formatblock-when-root-is-editing-host.html (309B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 "use strict"; 7 8 document.addEventListener("DOMContentLoaded", () => { 9 document.documentElement.contentEditable = "true"; 10 document.execCommand("formatBlock", false, "h3"); 11 }, {once: true}); 12 </script> 13 </head> 14 <body> 15 text 16 <!-- no-final-newline -->