blob: 4eb4d47eb70a317d9f3591644795d14338acb525 [file] [log] [blame]
<div id="description">This tests to make sure that hitting return inside (but not at the end of) a header element clones it. Below there should be two identical h2 elements.</div>
<div id="edit" contentEditable="true"><h2 id="h2">foo</h2></div>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
h2 = document.getElementById("h2");
text = h2.firstChild;
window.getSelection().setPosition(text, text.length - 1);
document.execCommand("InsertParagraph");
if (window.layoutTestController)
document.body.innerText = document.getElementById("description").innerText + "\n\n" + document.getElementById("edit").innerHTML;
</script>