From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Lechtenboerger Subject: Re: ox-html: Bug or feature for export of title and meta information? Date: Sun, 16 Feb 2020 19:16:18 +0100 Message-ID: <87imk6o0st.fsf@informationelle-selbstbestimmung-im-internet.de> References: <87d0ft3kpa.fsf@informationelle-selbstbestimmung-im-internet.de> <8736bhwnbl.fsf@gnu.org> <87k14pdqzl.fsf@informationelle-selbstbestimmung-im-internet.de> <87y2t5rmna.fsf@nicolasgoaziou.fr> <874kvsfg4t.fsf@informationelle-selbstbestimmung-im-internet.de> <87y2t4q78i.fsf@nicolasgoaziou.fr> 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]:53940) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3OT2-0002h5-Du for emacs-orgmode@gnu.org; Sun, 16 Feb 2020 13:16:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3OT1-0006NE-7X for emacs-orgmode@gnu.org; Sun, 16 Feb 2020 13:16:32 -0500 In-Reply-To: <87y2t4q78i.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 15 Feb 2020 15:02:05 +0100") 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: Bastien Cc: emacs-orgmode@gnu.org Hi there! On 2020-02-15, at 15:02, Nicolas Goaziou wrote: > Jens Lechtenboerger writes: > >> the W3C Markup Validator [1] disagrees with this output from >> ox-html (which I reduced to the essential parts): > > OK. I was talking about the Org syntax. I misread your initial report. > > I won't comment about the generated HTML. If needed, the HTML exporter > can prevent parsing TITLE keyword. I do not know what is needed. Function org-html--build-meta-info should return valid XHTML (also in case of HTML5, I believe that Org syntax is preferable over ignored [1] HTML tags). Based on the treatment of meta elements for author and description in that function, alternatives might use org-element-interpret-data (author) or not (description). I do not understand the role of org-element-interpret-data to generate author information. Which =E2=80=9Cnon exportable objects=E2=80=9D can be skipped by that function (as mentioned in a comment in org-html--build-meta-info)? Should they also be skipped for description or title? Best wishes Jens [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title