1 <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>
2 <div id=
"edit" contentEditable=
"true"><h2 id=
"h2">foo
</h2></div>
6 window
.testRunner
.dumpAsText();
7 h2
= document
.getElementById("h2");
9 window
.getSelection().collapse(text
, text
.length
- 1);
10 document
.execCommand("InsertParagraph");
11 if (window
.testRunner
)
12 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n\n" + document
.getElementById("edit").innerHTML
;