emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: emacs-orgmode@gnu.org
Subject: org-mode Publishing fails xhtml validation and LibreJS test.
Date: Sat, 12 Dec 2020 17:59:55 +0000	[thread overview]
Message-ID: <871rfuykf8.fsf@yandex.com> (raw)


When publishing, org-mode inserts the following javascript in the xhtml file:

#+begin_src js
<script type="text/javascript">
// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain
     function CodeHighlightOn(elem, id)
       var target = document.getElementById(id);
       if(null != target) {
     function CodeHighlightOff(elem, id)
       var target = document.getElementById(id);
       if(null != target) {
// @license-end

There are issues with this script.

1. The script gives errors in XHTML 1.0 Strict validation. For example,
the line beginning //@license ... gives errors of the type:
 a. cannot generate system identifier for general entity "dn"
 b. general entity "dn" not defined and no default entity
 c. reference not terminated by REFC delimiter

2. The script fails the LibreJS (gnu.org/software/librejs) tests. This
can be tested by opining the page in icecat.

In order to pass XHTML and LibreJS validation tests, I have to delete
the script from my web pages by hand.

Best wishes,

Colin Baxter.

Colin Baxter
URL: http://www.Colin-Baxter.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8

             reply	other threads:[~2020-12-12 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-12 17:59 Colin Baxter [this message]
2020-12-13  0:57 ` Tim Cross
2020-12-13  7:20   ` Colin Baxter
2020-12-13 15:53   ` Jean Louis

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rfuykf8.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


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).