multiple-execCommand-calls-after-interting-long-text.html (632B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Testcase for bug 682650 of Mozilla</title> 6 <script> 7 function boom() { 8 document.documentElement.contentEditable = "true"; 9 document.execCommand("inserthtml", false, "<button><\/button>"); 10 document.execCommand("inserthtml", false, "i".repeat(34646)); 11 document.execCommand("contentReadOnly", false, null); 12 document.execCommand("removeformat", false, null); 13 document.execCommand("hilitecolor", false, "red"); 14 document.execCommand("inserthtml", false, "a"); 15 document.execCommand("delete", false, null); 16 } 17 </script> 18 </head> 19 <body onload="boom();"></body> 20 </html>