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 qAGqEN1p1V/4FAAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 01:09:49 +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 QMRYDN1p1V86NAAAbx9fmQ (envelope-from ) for ; Sun, 13 Dec 2020 01:09:49 +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 7686094014B for ; Sun, 13 Dec 2020 01:09:48 +0000 (UTC) Received: from localhost ([::1]:58964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koFtT-0006Nl-5V for larch@yhetil.org; Sat, 12 Dec 2020 20:09:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koFso-0006Nc-0k for emacs-orgmode@gnu.org; Sat, 12 Dec 2020 20:09:06 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:40342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koFsm-0004mY-9N for emacs-orgmode@gnu.org; Sat, 12 Dec 2020 20:09:05 -0500 Received: by mail-pf1-x42f.google.com with SMTP id x126so856030pfc.7 for ; Sat, 12 Dec 2020 17:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=JjNsa6G+0xXlo/8jfVU/suY/TpcebdaDWbYz2hE+T9c=; b=kguat/HBJQbCBH8geMtJATEHz/gQwxHpIQ+odA6l04H0rdGS0bXQF/aQ2IcxQ6QgyQ 8Z5ajUuJDYyprHYQHQ3rFxd1Q2g+OTOZdHOM6NQYR13RU3P/2jBH6TSwH0pE8wAmFdC/ KFu+quVYayfA1bEXjqdEiS7KxaSIIYODydIUaMwEVHPn7jEUypM+RPGQCSmjfViGH1Sf WkJvjuwaCm1EQOH5KBohHT4wOxldbz5WyPj3xkPW39mXZ6b8qdkkK/uDtIJ1PBX5Svcd 99tzzd3BYK7hUrU6yb+nqEGlAGnJZ15F/ABNW6A+o60ts1ha9Ro5euFtlBSS1uSyXFPL rtvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=JjNsa6G+0xXlo/8jfVU/suY/TpcebdaDWbYz2hE+T9c=; b=f0sb8I2q90hO3xd6jj8NEAJKBqxdyTS9KiQULEN9E8K+5pH0fuQ4jf8svp/kSgeX1S J3GyUaPOPKUD9rbCVReEXS672bA1ckiU3+SYdkrGwGr5ymZPdEzmelR36JvDUSRj3mBk kz8/BnaB7OrL4IpDho8+F2HOibH7+nKUqK2rPQcU8qR0WY9RZyHEGH9E8/H3eK8+9OA9 6hg7ocvC6Gp8/l0DDoDKoKhpT+YkIecO3uOZdMqrxj6jGonxkY+1IAzGN9jnIgenL5lI muT0URv+UfGN4FEmzH3Dd9eiUm+m7wwfnjRb1rYGcglVLHripMoX8vLjjqREBKnp2s83 uNXQ== X-Gm-Message-State: AOAM533Ioetm4gejL3jpDpkLkffNDnicac5Lq4tiA3e3QaSmP2pFb91G jVQKeJTETdMf8caFmRVTUILov8tI2ko1RQ== X-Google-Smtp-Source: ABdhPJwuEq2RQIOhWnsCGBYMU2EaOQ4RSTeMlb99yCyEzgkakuwWNSbjW5T4/B7SFpMFcAKZgVcblw== X-Received: by 2002:a63:5748:: with SMTP id h8mr18015737pgm.24.1607821742416; Sat, 12 Dec 2020 17:09:02 -0800 (PST) Received: from tim-desktop (220-235-14-99.dyn.iinet.net.au. [220.235.14.99]) by smtp.gmail.com with ESMTPSA id v12sm15696610pgq.3.2020.12.12.17.09.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Dec 2020 17:09:01 -0800 (PST) References: <871rfuykf8.fsf@yandex.com> User-agent: mu4e 1.5.7; emacs 27.1.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: org-mode Publishing fails xhtml validation and LibreJS test. Date: Sun, 13 Dec 2020 11:57:51 +1100 In-reply-to: <871rfuykf8.fsf@yandex.com> Message-ID: <87v9d6tsut.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kguat/HB; dmarc=pass (policy=none) header.from=gmail.com; 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: 7686094014B X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: xPICXzlPCvw+ 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? Would it be sufficient to just have the license information embedded as a simple comment? -- Tim Cross