blob: 25a630a7440bd95768b03fe7c6d69316f0d10cbb [file] [log] [blame]
<!DOCTYPE>
<html>
<body>
<p id="description">Placing cursor at the end of first list and executing forward delete should merge the second list with the first one.</p>
<div contenteditable>
<ol><li>one</li><li>two</li><li id="li">three</li></ol>
<ol><li>four</li><li>five</li><li>six</li></ol>
</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var li = document.getElementById("li");
var selection = window.getSelection();
selection.collapse(li, li.childNodes.length);
document.execCommand("forwardDelete");
Markup.description(document.getElementById('description').textContent);
Markup.dump(document.querySelector('div'));
</script>
</body>
</html>