4 <p id="description">This tests copying and pasting text does not remove non-editing style in the destination.
5 To manually test, copy "hello world" below and paste it in the box below. The blue border should stay after the paste.</p>
6 <div id="source" contenteditable><i>hello</i></div>
7 <div id="destination" style="padding:20px;" contenteditable><b style="border: solid 5px blue;padding: 5px;"><br></b></font></div>
8 <script src="../../resources/dump-as-markup.js"></script>
10 if (window.layoutTestController)
11 layoutTestController.dumpAsText();
13 Markup.description(document.getElementById('description').textContent);
15 Markup.dump('destination', 'Before copy');
17 document.getElementById('source').focus();
18 document.execCommand('SelectAll', false, null);
19 document.execCommand('Copy', false, null);
21 document.getElementById('destination').focus();
22 document.execCommand('Paste', false, null);
24 Markup.dump('destination', 'After paste');