<html> | |
<body> | |
<p>This tests for a bug where performing the Remove Format operation on a selection that started in underlined content would underline everything operated on.</p> | |
<div id="div" contenteditable="true"><u>foo</u> bar baz</div> | |
<script> | |
var div = document.getElementById("div"); | |
div.focus(); | |
document.execCommand("RemoveFormat"); | |
</script> | |
</body> |