4 <script src=
"../../resources/dump-as-markup.js"></script>
5 <div id=
"test" contenteditable
><ul><li>hello
</li><li>world
</li>WebKit
</ul></div>
8 Markup
.description('This tests RemoveFormant command on an orphaned list item following non-orphaned list items. WebKit used to remove non-orphaned list items ("hello world"). You should see "hello world WebKit" below.');
9 var text
= document
.getElementById('test').lastChild
.lastChild
;
10 var range
= document
.createRange();
11 range
.setStart(text
, 0);
12 range
.setEnd(text
, 6);
13 window
.getSelection().removeAllRanges();
14 window
.getSelection().addRange(range
);
15 document
.execCommand('RemoveFormat', false, null);