summaryrefslogtreecommitdiff
path: root/src/content/onScriptDisabled.js
diff options
context:
space:
mode:
authorhackademix2018-07-09 00:09:34 +0200
committerhackademix2018-07-09 00:09:34 +0200
commit5217db79ce7db2a2d6e95483d3f6d9dad462a476 (patch)
tree214c8d96850ed658552739c6ad6f98cb8819b0e2 /src/content/onScriptDisabled.js
parentdac392dedab6a4372d6e1d41483735d192e97eef (diff)
downloadnoscript-5217db79ce7db2a2d6e95483d3f6d9dad462a476.tar.gz
noscript-5217db79ce7db2a2d6e95483d3f6d9dad462a476.tar.xz
noscript-5217db79ce7db2a2d6e95483d3f6d9dad462a476.zip
Content-side DOM insertions made compatible with XML document.
Diffstat (limited to 'src/content/onScriptDisabled.js')
-rw-r--r--src/content/onScriptDisabled.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js
index 2c1c59c..45f1534 100644
--- a/src/content/onScriptDisabled.js
+++ b/src/content/onScriptDisabled.js
@@ -1,7 +1,7 @@
function onScriptDisabled() {
for (let noscript of document.querySelectorAll("noscript")) {
// force show NOSCRIPT elements content
- let replacement = document.createElement("no-script");
+ let replacement = createHTMLElement("no-script");
replacement.innerHTML = noscript.innerHTML;
noscript.parentNode.replaceChild(replacement, noscript);
// emulate meta-refresh