DOMImplementation-createHTMLDocument-with-saved-implementation.html (718B)
1 <!DOCTYPE html> 2 <title>DOMImplementation.createHTMLDocument</title> 3 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <div id="log"></div> 7 <script> 8 // Test the document location getter is null outside of browser context 9 test(function() { 10 var iframe = document.createElement("iframe"); 11 document.body.appendChild(iframe); 12 var implementation = iframe.contentDocument.implementation; 13 iframe.remove(); 14 assert_not_equals(implementation.createHTMLDocument(), null); 15 }, "createHTMLDocument(): from a saved and detached implementation does not return null") 16 </script>