OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <link id="lnk" rel="preload" as="image" href="http://prefetch.wut.com.test/3.gif
"> |
| 8 <script> |
| 9 description("Inserting a <link rel=preload> into a bare document shouldn't crash
."); |
| 10 |
| 11 window.jsTestIsAsync = true; |
| 12 |
| 13 function runTest() { |
| 14 var doc = document.implementation.createDocument("", "", null); |
| 15 doc.appendChild(document.getElementById("lnk")); |
| 16 testPassed("no crash"); |
| 17 finishJSTest(); |
| 18 } |
| 19 |
| 20 window.onload = runTest; |
| 21 </script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |