3 <p>This tests formatting a text immediately after hr with h1 tag.
</p>
4 <div id=
"e" contenteditable
><hr>test
</div>
7 <li>Before:
<span id=
"c1"></span></li>
8 <li>After:
<span id=
"c2"></span></li>
11 <script type=
"text/javascript">
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
16 var e
= document
.getElementById('e');
17 document
.getElementById('c1').appendChild(document
.createTextNode(e
.innerHTML
));
19 var s
= window
.getSelection();
20 s
.collapse(document
.getElementById('e'), 1);
21 document
.execCommand("formatblock", false, "h1");
23 document
.getElementById('c2').appendChild(document
.createTextNode(e
.innerHTML
));