blob: a2671a78f69c1f0065892fbeba81e872163c756e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!doctype html>
<meta charset="utf-8">
<title>JS is disabled on documents created without a browsing context</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-n-script">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function(t) {
var doc = document.implementation.createHTMLDocument();
window.fail_test = t.unreached_func('should not have been called');
var script = doc.createElement('script');
script.textContent = 'fail_test();';
doc.documentElement.appendChild(script);
}, 'script on document returned by createHTMLDocument should not execute');
</script>
|