3 window.testRunner.dumpAsText();
6 window.testRunner.waitUntilDone();
10 var sel = frame.getSelection();
11 var doc = frame.document;
12 sel.setPosition(doc.body, 0);
13 doc.execCommand("SelectAll");
14 doc.execCommand("Copy");
16 var p1 = document.getElementById("pastehere");
17 var s = window.getSelection();
19 document.execCommand("Paste");
20 log(document.getElementById("pastehere").innerHTML);
22 if (window.testRunner)
23 window.testRunner.notifyDone();
27 var li = document.createElement("li");
28 li.appendChild(document.createTextNode(str));
29 var console = document.getElementById("console");
30 console.appendChild(li);
33 <div id="description">
34 This test copies the content of an iframe and pastes it
35 in an editable area and verifies that no script, handlers or javascript urls are copied.
37 <div id="pastehere" contenteditable="true"></div>
38 <ul id="console"></ul>
39 <iframe id="iframe1" src="../resources/svgcontent.xhtml" onload="foo()"></iframe>