Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
    • /html/semantics/embedded-content/the-object-element/object-construct-in-document-with-null-browsing-context-crash.html - WPT Dashboard Interop Dashboard
<title>HTMLObjectElement: construct in a document with a null browsing context</title>
<link rel="author" title="Nate Chapin" href="mailto:japhet@chromium.org">
<meta name="assert" content="Constructing an HTMLObjectElement in a document with a null browsing context should not crash"/>
<iframe id="i"></iframe>
<script>
var doc = i.contentDocument;
i.remove();
doc.createElement('object');
</script>