Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function addFrame(contents)
6 {
7 var frame = document.createElement("iframe");
8 frame.src = "data:text/html," + contents;
9 document.body.appendChild(frame);
10 }
11 function boom()
12 {
13 addFrame("1");
14 document.documentElement.offsetHeight;
15 addFrame("2");
16 document.body.style.display = "table-caption";
17 }
18 </script>
19 </head>
20 <body onload="boom();"></body>
21 </html>