summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/deleting/merge-list-items-in-same-list.html
blob: 18d0b65b7f846a4b24a26d7076dfa359fd882f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
<body>
<div>
<ul contenteditable><li>one</li><li></li><li id="li">three</li></ul>
</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var li = document.getElementById('li');
var selection = window.getSelection();
selection.collapse(li, 0);
document.execCommand('Delete');
Markup.dump(document.querySelector('div'));
</script>
</body>
</html>