OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../../resources/testharness.js"></script> | |
5 <script src="../../../resources/testharnessreport.js"></script> | |
6 </head> | |
7 <body> | |
8 <div></div> | |
9 <script> | |
10 document.querySelector('div').innerHTML = "<link rel='import' id='innerLink' h ref='resources/hello.html'>"; | |
11 </script> | |
12 <link id="followingLink" rel="import" href="resources/hello.html"> | |
13 <script> | |
14 test(function() { | |
15 assert_true(null == innerLink.import, 'Import via innerHTML'); | |
kouhei (in TOK)
2016/02/08 01:00:31
===?
| |
16 assert_true(null != followingLink.import, 'Following import loaded'); | |
kouhei (in TOK)
2016/02/08 01:00:31
!==?
| |
17 }, 'Block imports via innerHTML.'); | |
18 </script> | |
19 </body> | |
20 </html> | |
OLD | NEW |