Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / remove-format-orphaned-list-item.html
blobb7b5aa7114b83f46045434246119e18259c3d66f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="test" contenteditable><ul><li>hello</li><li>world</li>WebKit</ul></div>
6 <script>
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);
16 Markup.dump('test');
18 </script>
19 </body>
20 </html>