blob: e356b1a66a3d01c76db7d8a4a51b70aeaf432053 [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" style="display:none">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>