inhead-noscript-head.html (827B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>Test that when the scripting flag is disabled, a head start tag in "in head noscript" mode is ignored</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <body> 7 <script> 8 promise_test(async function(t) { 9 let iframe = document.createElement("iframe"); 10 iframe.srcdoc = "<!DOCTYPE html><head><noscript><head><style></style>"; 11 iframe.sandbox = "allow-same-origin"; 12 let loaded = new Promise(resolve => iframe.onload = resolve); 13 document.body.append(iframe); 14 await loaded; 15 assert_equals(String(iframe.contentDocument.querySelector("noscript").firstChild), "[object HTMLStyleElement]"); 16 }, "When the scripting flag is disabled, a head start tag in \"in head noscript\" mode should be ignored"); 17 </script>