inserthorizontalrule-to-replace-li.html (462B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 "use strict"; 7 8 addEventListener("DOMContentLoaded", () => { 9 document.execCommand("selectAll"); 10 document.getSelection().extend(document.getElementById("li")); 11 document.designMode = "on"; 12 document.execCommand("insertHorizontalRule"); 13 }); 14 </script> 15 </head><body><progress> 16 <q> 17 <ol contenteditable="true"> 18 <li id="li"> 19 </li> 20 </ol> 21 </q></progress> 22 <select></select> 23 <!-- COMMENT --> 24 </body></html>