From 56bad3f84dbf2ddc5fd0e1e9b14f3453fb5b24c9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 27 Feb 2015 16:01:47 +0100 Subject: [PATCH] Fix the detection of script tag in case of not type specified --- tarteaucitron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 819e7cf..a91787c 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -691,7 +691,7 @@ var tarteaucitron = { childId = id + Math.floor(Math.random() * 99999999999); document.getElementById(id).innerHTML += '
'; tarteaucitron.makeAsync.getAndParse(scripts[i].getAttribute('src'), childId); - } else if (type.indexOf('javascript') !== -1) { + } else if (type.indexOf('javascript') !== -1 || type === '') { eval(scripts[i].innerHTML); } }