1 <script src=
"../../resources/dump-as-markup.js"></script>
2 <p>Layout test case for Bugzilla bug
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=84597">84597</a>.
</p>
3 <p id=
"description">This test verifies removing of an (Un)OrderedList on a selection consisting of multiple list items (paragaraphs) when the end point of the selection points to the end of the last list item; followed by another paragraph not part of the selection/list.
</p>
4 <div id=
"test" contenteditable=
"true">
5 <p id=
"start">This content should
</p><p>not be displayed as
</p><p id=
"end">an unordered list.
</p>
6 <p>This is some content that should not be added to the selection or the list.
</p>
9 Markup
.description(document
.getElementById('description').textContent
);
10 var sel
= window
.getSelection();
11 var start
= document
.getElementById("start").firstChild
;
12 var end
= document
.getElementById("end").firstChild
;
13 sel
.setBaseAndExtent(start
, 0, end
, 18);
14 document
.execCommand("InsertUnorderedList", false, "");
15 document
.execCommand("InsertUnorderedList", false, "");