1 <div id=
"description">This tests for a bug where FormatBlock in a p element would leave one letter with the wrong style.
</div>
2 <div id=
"edit" contentEditable=
"true"><p>This should be in a p element.
</p><p id=
"p">This should be in an H2.
</p></div>
6 window
.testRunner
.dumpAsText();
8 p
= document
.getElementById("p");
9 s
= window
.getSelection();
12 document
.execCommand("FormatBlock", false, "h2");
13 if (window
.testRunner
)
14 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n\n" + document
.getElementById("edit").innerHTML
;