https://bugzilla.wikimedia.org/show_bug.cgi?id=69924

--- Comment #17 from Krinkle <[email protected]> ---
Alternatively, we might be able to do the condition outside the script. Perhaps
something like replace this:

<script
src="./load.php?modules=user&only=scripts&user=Example&version=1"></script>

with:

<script>if (cond) document.write("\u003Cscript
src=\"./load.php?modules=user\u0026only=scripts\u0026user=Example\u0026version=1\"\u003E\u003C/script\u003E");</script>

Of course, document.write is horrible, but nothing about this is pretty.
document.write can be unreliable, but there are certain scenarios in which it
is deterministically and cross-browser safe to use. I wonder if this is such
case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to