3 ms·
It's interesting that someone went out of their way to obfuscate the interim.html script: document.write('<s'+'cript language="JavaScript" src="'); I gues
by msmith 15y ago
It's interesting that someone went out of their way to obfuscate the interim.html script:
document.write('<s'+'cript language="JavaScript" src="');
I guess they were intentionally trying to evade some tool that looks for '<script'?
- jeltz 15y agoMy theory is just overzealous protection against having the </script> end tag break that JavaScript block early. Escaping the end tag is necessary. document.write(adUrl+'"></s'+'cript>');
- lftl 15y agoIt's been awhile since I played with it, but I believe there's a legitimate reason for breaking the <script. Possibly one of the older browsers had a broken parser that would interpret that as the beginning of a new script tag?
- xentronium 15y agoI believe, it's some sort of IE hack.
- xentronium 15y agohttp://stackoverflow.com/questions/236073/why-split-the-script-tag-when-writing-it-with-document-write http://stackoverflow.com/questions/236073/why-split-the-scri... Found a stack overflow question with explanation. Again, I believe, only IE couldn't handle word script in the literal string.
- msmith 15y agoAh, I see. Thanks for the pointer.