4 <p id=
"description">Tests breaking out of empty list item in case of nested lists.
</p>
15 <script src=
"../../resources/dump-as-markup.js"></script>
17 var li
= document
.getElementById("li");
18 var selection
= window
.getSelection();
19 selection
.collapse(li
, li
.childNodes
[0].length
);
20 document
.execCommand('InsertText', false, '\n'); //Split the inner list into two
21 document
.execCommand('InsertText', false, '\n'); //Break out of the first inner list
22 document
.execCommand('InsertText', false, '\n'); //Break out of the outer list
23 document
.execCommand('InsertText', false, 'foo');
24 Markup
.description(document
.getElementById('description').textContent
);
25 Markup
.dump(document
.querySelector('div'));