Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / document-write-into-initial-document.html
blob1d0c6fcc4d7792572034a9eb1abdf53f5036a64b
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 function runTest() {
6 var text = document.getElementById('iframe').contentDocument.documentElement.outerText;
7 result.innerHTML = text;
9 </script>
10 <setvar id="result">
11 <script>
12 document.write('<iframe id="iframe" src="data:text/plain,FAIL" onload="runTest()">')
13 var oRTE = frames[0].document;
14 oRTE.write("PASS");
15 oRTE.close();
16 </script>