blob: d24755fe7b5391c510aafab1430398af8089e54c [file] [log] [blame]
<script src="../../resources/dump-as-markup.js"></script>
<table>
<tr>
<td>
<div id="test" contenteditable="true">
<div id="l1">The caret is initially here but should move to the beginning of the line.</div>
<div>dummy text</div>
</div>
</td>
</tr>
</table>
<script>
Markup.description("Tests whether home moves the caret to the beginning of line inside a content-editable in an uneditable table.")
var s = window.getSelection();
s.collapse(document.getElementById('l1').firstChild, 23);
Markup.dump('test');
s.modify("move", "backward", "lineboundary");
Markup.dump('test');
</script>