blob: faaaa636677119966f67303f79c558b83345efcb [file] [log] [blame]
<p id="paragraph">This test checks to see if removing a word causes the painted color of a selection to disappear. There is an extra word <b id="word">word </b>that is removed and the test passes if everything looks selected as it should.</p>
<script>
var paragraph = document.getElementById("paragraph");
getSelection().setBaseAndExtent(paragraph, 0, paragraph, paragraph.childNodes.length);
paragraph.removeChild(document.getElementById("word"));
</script>