remove-anonymous-block-crash.html 447 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <div style="position: absolute" contenteditable>
  3. Text
  4. <li id="li">Text</li>
  5. <p>
  6. </div>
  7. <script>
  8. if (window.testRunner) {
  9. testRunner.dumpAsText();
  10. testRunner.waitUntilDone();
  11. }
  12. window.getSelection().collapse(document.getElementById("li"));
  13. document.execCommand("InsertUnorderedList");
  14. setTimeout(function() {
  15. document.execCommand("JustifyRight");
  16. if (window.testRunner)
  17. testRunner.notifyDone();
  18. }, 0);
  19. </script>