From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8CeIN/vA1V/OaAAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 07:21:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id fwYuM/vA1V8gWQAAbx9fmQ (envelope-from ) for ; Sun, 13 Dec 2020 07:21:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3A3CA9401BC for ; Sun, 13 Dec 2020 07:21:31 +0000 (UTC) Received: from localhost ([::1]:51400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koLhB-0006x7-03 for larch@yhetil.org; Sun, 13 Dec 2020 02:21:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koLgL-0006x0-Jq for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 02:20:37 -0500 Received: from forward102o.mail.yandex.net ([2a02:6b8:0:1a2d::602]:50479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koLgI-0004Vx-Ne for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 02:20:37 -0500 Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:c04:105:0:640:c876:5ab5]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 6987366811F5; Sun, 13 Dec 2020 10:20:27 +0300 (MSK) Received: from iva6-2d18925256a6.qloud-c.yandex.net (iva6-2d18925256a6.qloud-c.yandex.net [2a02:6b8:c0c:7594:0:640:2d18:9252]) by mxback17j.mail.yandex.net (mxback/Yandex) with ESMTP id DdJCeXbQ9Y-KRBuUHq8; Sun, 13 Dec 2020 10:20:27 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1607844027; bh=TwU3jb073GQeu6LeLAUt6+1dr47V4uU4rAtClICvr90=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Cc:Date:References; b=W8urnLLsVfHMDhcJUvKncbJt4114DRz4K3L2ApWS2hFDcb4S8X0NHYhoaSJXPo0zF sXC/AD93CS0xIvI1k8SWHJOXhwxEuFAW7fzmrZgA06MLslhQU25GnyW9mfnIbKhg3P 3hWoo3aQ+hp2wUb+TZIvcUCimCxFBUNgYGBcwQK8= Received: by iva6-2d18925256a6.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id zo1rUuwRmf-KQI45GcW; Sun, 13 Dec 2020 10:20:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Colin Baxter To: Tim Cross Subject: Re: org-mode Publishing fails xhtml validation and LibreJS test. References: <871rfuykf8.fsf@yandex.com> <87v9d6tsut.fsf@gmail.com> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Sun, 13 Dec 2020 07:20:25 +0000 In-Reply-To: <87v9d6tsut.fsf@gmail.com> (Tim Cross's message of "Sun, 13 Dec 2020 11:57:51 +1100") Message-ID: <87tusqw4sm.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:0:1a2d::602; envelope-from=m43cap@yandex.com; helo=forward102o.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.20 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=yandex.com header.s=mail header.b=W8urnLLs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3A3CA9401BC X-Spam-Score: -1.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: H52ack9jzBJY Dear Time, >>>>> Tim Cross writes: > Colin Baxter writes: >> Hello, >> >> When publishing, org-mode inserts the following javascript in the >> xhtml file: >> >> #+begin_src js #+end_src >> >> 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 etc. >> >> 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. >> > Given the move to HTML5 and deprecation of XHTML, how valid are > XHTML compliance requirements these days? Could it be time to > 'reverse' the org defaults and export using HTML5 by default > rather than XHTML? I believe it remains important to have XHTML compliance, a view which would seem consistent with W3C's retention of its validation service. > Would it be sufficient to just have the license information > embedded as a simple comment? I think this might be a good idea. And if it gets rid of the non-free javascript (as defined by LibreJS and therefore by gnu) then so much the better. Best wishes, Colin Baxter. Colin Baxter URL: http://www.Colin-Baxter.com --------------------------------------------------------------------- GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 41C8 ---------------------------------------------------------------------