From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Baxter Subject: Re: ox.html causes w3c xhtml validation Date: Sun, 15 Mar 2020 19:56:13 +0000 Message-ID: <87d09dz92a.fsf@yandex.com> References: <87eett7bql.fsf@yandex.com> <871rpt9zc4.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41611) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDZN1-0008Hy-RR for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:56:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDZMz-0003hi-KS for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:56:22 -0400 Received: from forward101j.mail.yandex.net ([2a02:6b8:0:801:2::101]:36514) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDZMy-000371-Vu for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:56:21 -0400 In-Reply-To: <871rpt9zc4.fsf@kyleam.com> (Kyle Meyer's message of "Sun, 15 Mar 2020 19:45:31 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Kyle Meyer Cc: Arne Babenhauserheide , emacs-orgmode@gnu.org Dear Kyle, Thanks for your reply. >>>>> Kyle Meyer writes: > Colin Baxter writes: >> ----- Begin ----- Warning Line 205, Column 74: cannot generate >> system identifier for general entity "dn" >>=20 >> =E2=80=A6rn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=3Dgpl-3= .0.txt >> GPL-v3-or-Later >>=20 >> An entity reference was found in the document, but there is no >> reference by that name defined. Often this is caused by >> misspelling the reference name, unencoded ampersands, or by >> leaving off the trailing semicolon (;). The most common cause of >> this error is unencoded ampersands in URLs as described by the >> WDG in "Ampersands in URLs". >>=20 >> ----- End ------- >>=20 >> The cause is ox-html, which has the following lines >>=20 >> ./lisp/ox-html.el:235:// @license >> magnet:?xt=3Durn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=3D= gpl-3.0.txt >> GPL-v3-or-Later > [...] >> I think the culprit is commit >> 68fa5e589f00c8d5b4f7f0dc70be6ebe59238bb8, 11 Feb. >>=20 >> Is it possible to fix this? > From what I gather from briefly searching around (mostly based on > this information [0]), I don't think there's an easy fix for > inline javascript. In my opinion, if it can't be fixed then the changes should be removed. Surely, we cannot have an org-mode that knowingly exports/publishes something that causes a validation error! > I wonder if Arne [+cc], who suggested the change [1], knows of a > solution. > [0]: https://mrcoles.com/blog/how-use-amersands-html-encode/ [1]: > https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00030.html Best wishes, Colin. --=20 Colin Baxter www.Colin-Baxter.com