13 lines
620 B
HTML
13 lines
620 B
HTML
<!doctype html>
|
|
<meta charset=utf-8>
|
|
<title>DOMImplementation.createHTMLDocument()</title>
|
|
<link rel="author" title="Nate Chapin" href="mailto:japhet@chromium.org">
|
|
<link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument">
|
|
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1086800">
|
|
<meta name="assert" content="Calling on createHTMLDocument() on a DOMImplementation from a document with a null browsing context should not crash"/>
|
|
<iframe id="i"></iframe>
|
|
<script>
|
|
var doc = i.contentDocument;
|
|
i.remove();
|
|
doc.implementation.createHTMLDocument();
|
|
</script>
|