OLD | NEW |
1 <html> | 1 <html> |
2 <link rel="import" href="../resources/dump-as-text.sky" /> | 2 <import src="../resources/dump-as-text.sky" /> |
3 <body id="body"> | 3 <body id="body"> |
4 <script> | 4 <script> |
5 function mutationCallback(mutations, observer) { | 5 function mutationCallback(mutations, observer) { |
6 mutations[0].addedNodes[-1]; | 6 mutations[0].addedNodes[-1]; |
7 } | 7 } |
8 | 8 |
9 var mutationObserver = new MutationObserver(mutationCallback); | 9 var mutationObserver = new MutationObserver(mutationCallback); |
10 var body = document.getElementById("body"); | 10 var body = document.getElementById("body"); |
11 mutationObserver.observe(body, {childList: true}); | 11 mutationObserver.observe(body, {childList: true}); |
12 body.appendChild(document.createTextNode("PASS. We didn't crash")); | 12 body.appendChild(document.createTextNode("PASS. We didn't crash")); |
13 </script> | 13 </script> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |