4 <p id="description">This tests copying and pasting text does not result in nested style elements such as b, em, and font.
5 To manually test, copy and paste "hello world" below. WebKit should not nest b, i, u, and font.</p>
6 <div id="test" contenteditable><b><i><u><font color="red">hello world</font></u></i></b></div>
7 <script src="../../resources/dump-as-markup.js"></script>
10 testRunner.dumpAsText();
12 Markup.description(document.getElementById('description').textContent);
14 document.getElementById('test').focus();
16 Markup.dump('test', 'Before copy-paste');
17 document.execCommand('SelectAll', false, null);
18 document.execCommand('Copy', false, null);
19 document.execCommand('Paste', false, null);
20 Markup.dump('test', 'After copy-paste');