blob: c2a8f1a17d0c424279492ca3bbfc0beb60116a7e [file] [log] [blame]
<div id="outerdiv" contenteditable="true">
<div>There should be a single H1 block with a single BR below.</div>
<div id="div"><br></div>
<div id="div">There should be a single H1 block with a single BR above.</div>
</div>
<p id="console"></p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function log(message) {
var console = document.getElementById("console");
var text = document.createTextNode(message);
console.appendChild(text);
}
div = document.getElementById("div");
window.getSelection().collapse(div, 0);
document.execCommand("FormatBlock", false, "h1");
log(document.getElementById('outerdiv').innerHTML);
</script>