From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yC2QOMNdAWa3DwAA62LTzQ:P1 (envelope-from ) for ; Mon, 25 Mar 2024 12:19:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yC2QOMNdAWa3DwAA62LTzQ (envelope-from ) for ; Mon, 25 Mar 2024 12:19:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MavVZyBz; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711365571; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dW0bPLcElhUezZexL4GpHJ97NTfhrhb6HjdlYj9V+Ys=; b=fqAH/Qt6j0pFha1CzcqtckRL7pOPkgyyH1MQhrPBkzcshxFxQh3oZYh2KRsE35MI8hECiH oBq5mQgso3GUykK6xwOsLMR69uAtCfhLQdUVYFkFtqiwc9OLqx9GwzoZ7Xzlb92+rEGbWq QKjc6xtc0L/EDOD1XZ/xRjVW3foZADbIH8mHuzrBF01BCIyK5xX/CH8QNeNxUpYoJW8OQV SJR9McmH5BbTDu30kgWbe+UEPy0PuNHfTAmBnwnGGv4pc/oTGC3lYioXI8EEDFRWEHqyXs bPIPwnio12Zcl+sxtvphmWt4jvi4iNYH97BqDNIiz3p7LNZsFLv8Ht4Wj7EdCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MavVZyBz; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711365571; a=rsa-sha256; cv=none; b=r99utxq3cd8M7G6NBpo/tR2dHOR7HpKjc3hd/nCqHOtN62LJq5YBKqRGbrQ6ZWWV15Lvl4 McZ8YHLsemnmBMas3CRLLQBs0OOspe+Z1e1TIS78/q/AOs4WMcePJxin5t4Oz8hH0oYp4q be7qUFCGDl7mBjr3+GVjNbs6zfUkeVq3Gq6smghW13xDVTMJNBN3ZveA5Hgk+/qdVM/fKV E9LmMpqSrMza32ykjYdJcRNTKT2VuS9xjeG6Fgt3r3etO/TdqxyzqYUtZcEZMfPNRJdBkX oTjJ097q+zoBFXda9t359sfGvbcmcOJdR8500eUIKoiYVEuITGUqk/Leco7UUw== 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 043D84581C for ; Mon, 25 Mar 2024 12:19:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roiLb-0006Ge-03; Mon, 25 Mar 2024 07:18:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roiLZ-0006GT-3n for emacs-orgmode@gnu.org; Mon, 25 Mar 2024 07:18:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roiLS-0007Bn-TS for emacs-orgmode@gnu.org; Mon, 25 Mar 2024 07:18:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 236A4240028 for ; Mon, 25 Mar 2024 12:18:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711365503; bh=FiUFi7gDZ858Say0jI3qJCvMfP41am9OLmEMTlcj9ag=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=MavVZyBzvIGVZ/AhyrrLe2ilLZP4plto8Wi7oa8gOO30LU3WlLKEvqH6qBa1ubClJ J0cYirTte26bihN8hYYrrDoFmsD/4QWWorKHWvIO+voqdwAWQd4jtgawkK43bG5cdq Pnj/Gm8SonTBdjxO7pfqdqOX/WNXMcY7S/fhVhTLaFA+XLYj8PDg0qXa7NGgUGy9Y9 XJWdNb2GzhiyFyLbV6aBtH6NRNxXbnvMrgeFuiTkYNTuMCoGL/8UvCiIRGuI3omQPc /5RJH9ZIJSnhk4P02P17rc9MZrh0Bkl5CNpbyiPVxmSpC0Wn9TPQRMSDhQsN6i/GA8 k0cGlx6gzePvg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V39R21Ll2z9rxK; Mon, 25 Mar 2024 12:18:21 +0100 (CET) From: Ihor Radchenko To: emacs-orgmode@gnu.org, orgmode@tec.tecosaur.net Cc: c.buhtz@posteo.jp Subject: [BUG] ox-html output does not pass validation for html4-strict doctype [9.7-pre (release_9.6.23-1423-gcea6a1.dirty @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Mon, 25 Mar 2024 11:18:25 +0000 Message-ID: <87v85ad0fy.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 043D84581C X-Spam-Score: -9.45 X-Migadu-Spam-Score: -9.45 X-Migadu-Scanner: mx11.migadu.com X-TUID: F7GfV8v71LBS --=-=-= Content-Type: text/plain Setting (setq org-html-doctype "html4-strict") and exporting a trivial Org document (like the attached) to HTML fails to pass validation at https://validator.w3.org/ The error is Line 6, Column 72: character data is not allowed here ....using XHTML-style self-closing tags (such as ) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML. caused by /> self-closing tag. However, dropping /> will lead to validation failing for the default value of `org-html-doctype' - "xhtml-strict". I am wondering whether it is at all possible to use the same syntax and yet pass validation for all the allowed values of `org-html-doctype': "html4-strict", "html4-transitional", "html4-frameset", "xhtml-strict", "xhtml-transitional", "xhtml-frameset", "xhtml-11", "html5", "xhtml5". --=-=-= Content-Type: application/vnd.lotus-organizer; charset=utf-8 Content-Disposition: attachment; filename=20240322205907-testmath.org Content-Transfer-Encoding: base64 OlBST1BFUlRJRVM6CjpJRDogICAgICAgZDZkZTFiNzAtZDNkOS00ZjZhLWJlOTQtNGQyM2Q5ZWQy YmZjCjpFTkQ6CiMrdGl0bGU6IHRlc3RtYXRoCiMrZGF0ZTogWzIwMjQtMDMtMjIgMjA6NTldCmZv b2Jhcgo= --=-=-= Content-Type: text/plain Emacs : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-03-24 Package: Org mode version 9.7-pre (release_9.6.23-1423-gcea6a1.dirty @ /home/yantar92/.emacs.d/straight/build/org/) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--