OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <iframe id="iframe" srcdoc="<div id='inner-target'>abc</div>"></iframe> | |
3 <div id="target"></div> | |
4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
5 <script> | |
6 // Test that reparenting a text node across frame boundaries invalidates only th e necessary regions | |
7 // in the source and destination frame. | |
dsinclair
2014/09/05 19:35:10
Can you put this description into the HTML so if t
chrishtr
2014/09/05 19:59:09
Done.
| |
8 var target = document.getElementById("target"); | |
9 var iframeElement = document.getElementById("iframe"); | |
10 function repaintTest() { | |
11 var textNode = iframeElement.contentDocument.getElementById("inner-target"); | |
12 console.log(textNode); | |
dsinclair
2014/09/05 19:35:10
Remove.
chrishtr
2014/09/05 19:59:09
Done.
| |
13 target.appendChild(textNode); | |
14 } | |
15 iframeElement.onload = runRepaintTest(); | |
16 </script> | |
OLD | NEW |