blob: a5abd7051714af33a711e4bae7d808807d1c0cf2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="editor" contenteditable><div>first</div><div id="target">second</div></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This tests moving the selection backwards at the beginning of a line by word granularity');
editor.focus();
getSelection().setPosition(target, 0);
getSelection().modify('extend', 'backward', 'word');
Markup.dump(editor);
</script>
</body>
</html>