My html code is
<ul>
<li>list1</li>
<li>list2</li>
<li>list3</li>
<li>list4</li>
<li>list5</li>
</ul>
when i select the first three list items and using the following code to delete the selected list items
sel = window.getSelection();
if(!sel.isCollapsed){
sel.deleteFromDocument();
}
its looks like the following
how to delete the selected lists with bulletins,