[p2pu-dev] plugins.js and document.write()

Dan Diebolt dandiebolt at gmail.com
Tue Aug 7 10:52:02 UTC 2012


I think the code serves as a debugging aid to intercept document.write
calls and store them in the array log.history as well as echo to
console.log. I don't think the code was intended for inclusion in
production.

On Tue, Aug 7, 2012 at 4:23 AM, Dirk Uys <dirk at p2pu.org> wrote:

> Hi everyone, Paul, Zuzel
>
> After some focused debugging on why conversion tracking isn't working
> (Iow, after I verified a 100 times that the code is correct and accepted
> that it still doesn't work) I found the problem or at least what I think is
> the problem:
>
> It seems like in plugins.js (
> https://github.com/p2pu/lernanta/blob/master/lernanta/static/js/plugins.js#L47)
> essentially disables document.write().  Except if you want to write
> "docwriteregexwhitelist". It looks like this comes from HTML 5 Boilerplate?
> What was the reasoning behind this - is this to stop other JavaScript from
> doing bad things? Doesn't embed.ly already do this? Or do we allow script
> tags in the rich text editor?
>
> I would like to get conversion tracking to work on the site, so can I
> safely remove this bit of code?
>
> Cheers
> Dirk
>
> _______________________________________________
> p2pu-dev mailing list
> p2pu-dev at lists.p2pu.org
> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20120807/81e52fbe/attachment.html>


More information about the p2pu-dev mailing list