OLD | NEW |
| 1 <!-- This page is used to test that blank frames with dynamic contents are |
| 2 correctly serialized by the PageSerializer. |
| 3 --> |
1 <html> | 4 <html> |
2 | |
3 <script> | 5 <script> |
4 function onload() { | 6 function onload() { |
5 var frame = document.createElement("iframe"); | 7 var frame = document.createElement("iframe"); |
6 var div = document.getElementById("myDiv1"); | 8 var div = document.getElementById("myDiv1"); |
7 div.appendChild(frame); | 9 div.appendChild(frame); |
8 | 10 |
9 frame.contentDocument.body.innerHTML += | 11 frame.contentDocument.body.innerHTML += |
10 "Some text<br>An image <img src='blue_background.png'.><br><b>Some more te
xt</b>" | 12 "Some text<br>An image <img src='blue_background.png'.><br><b>Some more te
xt</b>" |
11 | 13 |
12 frame = document.createElement("iframe"); | 14 frame = document.createElement("iframe"); |
13 div = document.getElementById("myDiv2"); | 15 div = document.getElementById("myDiv2"); |
14 div.appendChild(frame); | 16 div.appendChild(frame); |
15 | 17 |
16 frame.contentDocument.body.innerHTML += | 18 frame.contentDocument.body.innerHTML += |
17 "Some text<br>An image <img src='red_background.png'.><br><b>Some more tex
t</b>" | 19 "Some text<br>An image <img src='red_background.png'.><br><b>Some more tex
t</b>" |
18 | 20 |
19 frame = document.createElement("iframe"); | 21 frame = document.createElement("iframe"); |
20 div = document.getElementById("myDiv3"); | 22 div = document.getElementById("myDiv3"); |
21 div.appendChild(frame); | 23 div.appendChild(frame); |
22 | 24 |
23 frame.contentDocument.body.innerHTML += | 25 frame.contentDocument.body.innerHTML += |
24 "Some text<br>An image <img src='orange_background.png'.><br><b>Some more
text</b>" | 26 "Some text<br>An image <img src='orange_background.png'.><br><b>Some more
text</b>" |
25 | 27 |
26 } | 28 } |
27 | |
28 </script> | 29 </script> |
29 | |
30 <body onload="onload()"> | 30 <body onload="onload()"> |
31 This page creates empty iframes and adds content to them dynamically.<br><br> | 31 This page creates empty iframes and adds content to them dynamically.<br><br> |
32 <div id="myDiv1"></div> | 32 <div id="myDiv1"></div> |
33 <div id="myDiv2"></div> | 33 <div id="myDiv2"></div> |
34 <div id="myDiv3"></div> | 34 <div id="myDiv3"></div> |
35 </body> | 35 </body> |
36 | |
37 </html> | 36 </html> |
OLD | NEW |