emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: javascript array interpreted as footnote in HTML section
@ 2010-04-16 14:29 Stephen
  0 siblings, 0 replies; only message in thread
From: Stephen @ 2010-04-16 14:29 UTC (permalink / raw)
  To: Emacs OrgMode

I would like to embed some javascript code at the bottom of an
exported HTML document:

#+BEGIN_HTML
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-123456-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
    (document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(ga);
  })();
/*]]>*/-->
</script>
#+END_HTML

I would expect this to be left alone by org-mode because it is in a
BEGIN_HTML section. Unfortunately, the [0] syntax is interpreted as a
footnote and now a broken footnotes section appears at the bottom of
the document (there are no other footnotes). The HTML code is left as
is, ie. the javascript array syntax is not turned into a link to the
footnote.

I think this is a bug. org-mode should not try to interpret literal HTML.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-16 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-16 14:29 Bug: javascript array interpreted as footnote in HTML section Stephen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).