From: Stefan Vollmar <vollmar@nf.mpg.de>
To: mailing-list-org-mode Mode <emacs-orgmode@gnu.org>
Subject: turn off inclusion of JavaScript helper code?
Date: Tue, 20 Apr 2010 22:31:29 +0200 [thread overview]
Message-ID: <B0562701-A5C5-4572-A76A-C2BF6A71824B@nf.mpg.de> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1678 bytes --]
Hello,
in our org-mode generated HTML pages we find these snippets:
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{ ...
}
function CodeHighlightOff(elem, id)
{ ...
}
/*]]>*///-->
</script>
We have just noticed that MS Internet Explorer complains that these lines pose a security risk (Firefox and Safari have no problem with them), deleting the JavaScript code solves the issue. I have found a link that might explain the problem: http://www.codingforums.com/archive/index.php/t-78039.html
(the problem is limited to locally accessed HTML pages, not HTML content that is accessed over a network; we now use org-mode to generate a locally stored collection of online help files in HTML - so this is an awkward issue for us)
As our pages do not need this JavaScript code anyway, having a switch that prevents this code from being included would be a good solution from our point of view. Naturally, we could have a "postprocessing" script to remove the offending lines before releasing the HTML content, however, that seems such a crude approach.
Here is a suggestion, maybe there could be a new switch for #+OPTIONS:
javascript: turn on/off inclusion of JavaScript helper code for code highlighting
and while we are at it:
css: turn on/off inclusion of stylesheet?
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5513 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2010-04-20 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 20:31 Stefan Vollmar [this message]
2010-04-20 22:22 ` turn off inclusion of JavaScript helper code? Sebastian Rose
2010-04-22 7:31 ` Stefan Vollmar
2011-01-10 13:28 ` Andreas Rütten
2011-01-10 17:08 ` Andreas Rütten
2011-01-10 17:10 ` Andreas Rütten
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B0562701-A5C5-4572-A76A-C2BF6A71824B@nf.mpg.de \
--to=vollmar@nf.mpg.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.