From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Babenhauserheide Subject: Re: ox.html causes w3c xhtml validation Date: Sun, 15 Mar 2020 23:40:49 +0100 Message-ID: <87tv2p1bta.fsf@web.de> References: <87eett7bql.fsf@yandex.com> <871rpt9zc4.fsf@kyleam.com> <87d09dz92a.fsf@yandex.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]:38206) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDbwJ-000389-9f for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 18:41:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDbwI-0006VM-0b for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 18:40:59 -0400 Received: from mout.web.de ([212.227.15.3]:37017) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDbwH-0006MP-J3 for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 18:40:57 -0400 In-reply-to: <87d09dz92a.fsf@yandex.com> 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: Colin Baxter Cc: emacs-orgmode@gnu.org Dear Kyle, Dear Colin, Colin Baxter writes: > >> ./lisp/ox-html.el:235:// @license > >> magnet:?xt=3Durn:btih:1f739d935676111cfff4b4693e3816e664797050&dn= =3Dgpl-3.0.txt > >> GPL-v3-or-Later > > [...] > >> I think the culprit is commit > >> 68fa5e589f00c8d5b4f7f0dc70be6ebe59238bb8, 11 Feb. > > 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. Firstoff: I can reproduce this by using an xhtml header: And second: I just verified that LibreJS still recognizes the license when we escape the & as & I would suggest the following: diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 9a1dd44b5..5c2b766e9 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -232,7 +232,7 @@ property on the headline itself.") =20 (defconst org-html-scripts "