summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/indent-empty-table-cell.html
blob: e413228c0c94fdf34de1139fa0f2fa87c020d286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<p>This tests for a crash when indenting an empty TD.</p>
<div contenteditable="true">
<table>
  <tbody>
    <tr>
      <td id ="indent"></td>
    </tr>
  </tbody>
</table>
</div>
<script>
if (window.testRunner)
    window.testRunner.dumpAsText();
indent = document.getElementById("indent");
window.getSelection().collapse(indent, 0);
document.execCommand("indent");
</script>