blob: 369090d9eb39270390559177f17485056c4dab6b [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
Test doing display:none for a cell in table with selection. This passes if it does not crash.
<table style="border-collapse: collapse">
<td id=c0></td>
<td id=c1></td>
</table>
<script>
var c0 = document.getElementById('c0');
var c1 = document.getElementById('c1');
var selection = window.getSelection();
selection.setBaseAndExtent(c0, 0, c1, 0);
c1.style.display = 'none';
</script>