<p>This tests for a bug where the color of indented text couldn't be changed.</p> | |
<div id="div" contenteditable="true"><br></div> | |
<script> | |
var div = document.getElementById("div"); | |
div.focus(); | |
document.execCommand("InsertText", false, "This text should be blue."); | |
document.execCommand("SelectAll"); | |
document.execCommand("ForeColor", false, "red"); | |
document.execCommand("Indent"); | |
document.execCommand("ForeColor", false, "blue"); | |
</script> |