I’m on EE 2.2 and I’m seeing some strangeness with Javascript inside the system.
For a global variable, I have an javascript ad code which has the following line in it:
if (window.self != window.top) {nf=''} else {nf='NF/'};In previous version of EE this code worked, now it fails.
In my console, javascript gives an error for it:
Uncaught SyntaxError: Unexpected token else
In the source code, I can see that this line has been changed at some point by EE to
if (window.self != window.top) else ;Effectively killing the code. It seems like EE thinks that {nf=''} and {nf='NF/'} are EE tags and attempts to replace them. Which is strange because it’s a Global Variable and really shouldn’t be parsed any more…
I think this is a bug but is there anything else that could cause this?