OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../resources/testharness.js"></script> | |
3 <script src="../resources/testharnessreport.js"></script> | |
4 | |
5 <div id="root"></div> | |
6 | |
7 <script> | |
8 test(function() { | |
9 var observer = new IntersectionObserver((changes) => {}, {root: root}); | |
10 var doc = document.implementation.createDocument("", null); | |
11 doc.appendChild(root); | |
12 }, "IntersectionObserver with root in a document that has no window does not cra sh."); | |
13 </script> | |
OLD | NEW |