| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Security-Policy" content="style-src 'self';"> | 4 <meta http-equiv="Content-Security-Policy" content="style-src 'self';"> |
| 5 <script src="/js-test-resources/js-test-pre.js"></script> | 5 <script src="/js-test-resources/js-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 window.onload = function () { | 7 window.onload = function () { |
| 8 debug("This test ensures that styles can be set by object.cloneNode(
)"); | 8 debug("This test ensures that styles can be set by object.cloneNode(
)"); |
| 9 | 9 |
| 10 window.nodes = document.getElementById('nodes'); | 10 window.nodes = document.getElementById('nodes'); |
| 11 window.node1 = document.getElementById('node1'); | 11 window.node1 = document.getElementById('node1'); |
| 12 window.node1.style.background = "yellow"; | 12 window.node1.style.background = "yellow"; |
| 13 window.node1.style.color = "red"; | 13 window.node1.style.color = "red"; |
| 14 window.node2 = document.getElementById('node1').cloneNode(true); | 14 window.node2 = document.getElementById('node1').cloneNode(true); |
| 15 window.node2.id = "node2"; | 15 window.node2.id = "node2"; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 <div id="ops" style="background: rgb(238, 130, 238)"> | 77 <div id="ops" style="background: rgb(238, 130, 238)"> |
| 78 Yet another div. | 78 Yet another div. |
| 79 </div> | 79 </div> |
| 80 | 80 |
| 81 <div id="violetOps"> | 81 <div id="violetOps"> |
| 82 Yet another div. | 82 Yet another div. |
| 83 </div> | 83 </div> |
| 84 | 84 |
| 85 </body> | 85 </body> |
| 86 </html> | 86 </html> |
| OLD | NEW |