<script> | |
if (window.testRunner) | |
testRunner.dumpEditingCallbacks(); | |
</script> | |
<body> | |
<p>This tests Indent in an empty editable element.</p> | |
<div id="div" contentEditable="true"></div> | |
<script> | |
var div = document.getElementById("div"); | |
var sel = window.getSelection(); | |
sel.setPosition(div, 0); | |
document.execCommand("Indent"); | |
</script> | |
</body> |