mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
make the "none" javascript implmentation specifically disable the scripting option
This commit is contained in:
parent
c2eff23c0d
commit
2f1ca751d6
@ -21,12 +21,14 @@
|
||||
*/
|
||||
|
||||
#include "content/content.h"
|
||||
#include "desktop/options.h"
|
||||
|
||||
#include "javascript/js.h"
|
||||
#include "utils/log.h"
|
||||
|
||||
void js_initialise(void)
|
||||
{
|
||||
nsoption_set_bool(enable_javascript, false);
|
||||
}
|
||||
|
||||
void js_finalise(void)
|
||||
|
@ -11,6 +11,7 @@
|
||||
<h2>Document write tests</h2>
|
||||
<ul>
|
||||
<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="sync-script.html">External syncronous script</a></li>
|
||||
<li><a href="sync-script-err.html">External syncronous script with missing js file</a></li>
|
||||
|
14
test/js/noscript-inline-doc-write.html
Normal file
14
test/js/noscript-inline-doc-write.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user