6 testRunner.dumpAsText();
10 var iframeElement = document.getElementById('iframe1');
11 var iframeDocument = iframeElement.contentDocument;
12 var iframeDocumentRoot = iframeDocument.documentElement;
14 var selection = window.getSelection();
15 var range = document.createRange();
16 selection.addRange(range);
17 range.selectNode(iframeDocumentRoot);
18 selection.addRange(range);
19 iframeDocument.removeChild(iframeDocumentRoot);
24 Test passes if it does not crash.
25 <iframe id="iframe1" onload="runTest()"></iframe>