blob: c97d76e78f312f78872b080b17618e0ff897855f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<div contenteditable="true"><ul><li>One<br></li><li>Two<br></li><li>Three<br></li></ul></div>
<script>
Markup.description('This tests switching the list type of multiple list items at once. WebKit should not crash.');
var div = document.getElementsByTagName('div')[0];
window.getSelection().selectAllChildren(div);
document.execCommand('InsertOrderedList', false, null);
Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followed by a single br.');
</script>
</body>
</html>