4 <p id="description">This test copies and pastes content inside pre that is an editing host. WebKit should not clone pre.
5 To manually test, copy and paste "hello" and then paste it into the boxes below.
6 WebKit should not clone pre (nest pre) and the pasted content should not have nested borders.</p>
7 <style> #container pre, #container div {border: solid 2px blue;} </style>
9 <pre contenteditable>hello</pre>
10 <div contenteditable></div>
12 <script src="../../resources/dump-as-markup.js"></script>
15 Markup.description(document.getElementById('description').textContent);
17 var container = document.querySelector('#container pre');
19 document.execCommand('selectAll', false, null);
20 document.execCommand('copy', false, null);
21 document.execCommand('paste', false, null);
23 Markup.dump(container, "Pasting into pre; the pre should not be listed below");
25 var container = document.querySelector('#container div');
27 document.execCommand('paste', false, null);
29 Markup.dump(container, "Pasting into div; the pasted content should be in pre");