summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/noscript-with-javascript-disabled.html
blob: 92bc798b7b8a5237dc93f2d10f70dcc89dc86402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>

<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.dumpChildFramesAsText();
    testRunner.overridePreference("WebKitJavaScriptEnabled", false);
}
</script>

<noscript> 
<body>
    FAIL: This content should not render because whether scripting is enabled
    (for the purposes of the 'noscript' tag) is locked in when the parser starts.
</noscript>

The text inside the 'noscript' tag inside the iframe should render:

<iframe
    src="data:text/html,<noscript><body>PASS: This test case verifies that contents inside &lt;noscript&gt; are rendered when Javascript is disabled.</body></noscript>">
</iframe>

</body>
</html>