blob: 32791fc73a682f4e027abeb5b458fed5477e2d0b [file] [log] [blame]
<html>
<body contenteditable="true"><div id="test"><a href="../resources/abe.png"><img style="display:block; margin:0px auto 10px; text-align:center;width: 60px; height: 60px;" src="../resources/abe.png" border="0"></a>
<br></div>
<ul id="console"></ul>
</body>
<script>
log("BEFORE: " + document.getElementById("test").innerHTML);
document.body.focus()
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.execCommand("DeleteForward");
}
log("AFTER: " + document.getElementById("test").innerHTML);
function log(str) {
var li = document.createElement("li");
li.appendChild(document.createTextNode(str));
var console = document.getElementById("console");
console.appendChild(li);
}
</script>
</html>