summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-object-element/object-construct-in-document-with-null-browsing-context-crash.html
blob: 7248368656d2042a04727f5702a43882526b2eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
<title>HTMLObjectElement: construct in a document with a null browsing context</title>
<link rel="author" title="Nate Chapin" href="mailto:japhet@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/C/#the-object-element">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1083437">
<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>