<p>This tests for a hang when creating a list out of several paragraphs, one of which is a horizontal rule. You should see four list items below, the second and the fourth should contain horizontal rules.</p> | |
<div id="div" contenteditable="true">foo<hr>bar<hr></div> | |
<script> | |
if (window.layoutTestController) | |
window.layoutTestController.dumpAsText(); | |
document.getElementById("div").focus(); | |
document.execCommand("SelectAll"); | |
document.execCommand("InsertUnorderedList"); | |
</script> |