make the "none" javascript implmentation specifically disable the scripting option

This commit is contained in:
Vincent Sanders 2012-10-02 13:33:08 +01:00
parent c2eff23c0d
commit 2f1ca751d6
3 changed files with 17 additions and 0 deletions

View File

@ -21,12 +21,14 @@
*/ */
#include "content/content.h" #include "content/content.h"
#include "desktop/options.h"
#include "javascript/js.h" #include "javascript/js.h"
#include "utils/log.h" #include "utils/log.h"
void js_initialise(void) void js_initialise(void)
{ {
nsoption_set_bool(enable_javascript, false);
} }
void js_finalise(void) void js_finalise(void)

View File

@ -11,6 +11,7 @@
<h2>Document write tests</h2> <h2>Document write tests</h2>
<ul> <ul>
<li><a href="inline-doc-write-simple.html">Simple docuemnt write</a></li> <li><a href="inline-doc-write-simple.html">Simple docuemnt write</a></li>
<li><a href="noscript-inline-doc-write.html">Script within inline script document write with noscript alternative</a></li>
<li><a href="inline-doc-write.html">Script within inline script</a></li> <li><a href="inline-doc-write.html">Script within inline script</a></li>
<li><a href="sync-script.html">External syncronous script</a></li> <li><a href="sync-script.html">External syncronous script</a></li>
<li><a href="sync-script-err.html">External syncronous script with missing js file</a></li> <li><a href="sync-script-err.html">External syncronous script with missing js file</a></li>

View File

@ -0,0 +1,14 @@
<html>
<head>
<title>Inline Docuemnt Write Test</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Inline Document Write Test</h1>
<p>Before</p>
<script>document.write("<scr" +"ipt>document.write(\"Goodbye Cruel World\");</scri" + "pt>");</script>
</script>
<noscript>Browser has scripting disabled</noscript>
<p>Afterwards</p>
</body>
</html>