From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [PATCH] Only use HTML5 fancy elements in HTML5 Date: Tue, 18 Aug 2015 08:49:47 +0800 Message-ID: <87d1yl1kus.fsf@ericabrahamsen.net> References: <877fot6his.fsf@ericabrahamsen.net> <87h9nxdfj3.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRV6H-0003BE-St for emacs-orgmode@gnu.org; Mon, 17 Aug 2015 20:50:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRV6D-00074V-Na for emacs-orgmode@gnu.org; Mon, 17 Aug 2015 20:50:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:47648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRV6D-00073W-Cr for emacs-orgmode@gnu.org; Mon, 17 Aug 2015 20:49:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZRV6B-0003rP-6e for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 02:49:55 +0200 Received: from 50.56.99.223 ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Aug 2015 02:49:55 +0200 Received: from eric by 50.56.99.223 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Aug 2015 02:49:55 +0200 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Rasmus writes: > Hi, > > Eric Abrahamsen writes: > >> Currently, if the global variable `org-html-html5-fancy' is t, some >> elements of HTML export will use fancy elements even when not exporting >> to HTML5 at all. >> >> Specifically, the TITLE of a document will be wrapped in
tags, >> even when exporting to XHTML4. I ran into this while making some epub >> files and the syntax checker barked at me. >> >> This patch fills out the check. There's growing redundancy in this file >> now -- if it seems desirable to have a `org-html-html5-fancy-p' function >> that encapsulates the paired checks, I'd be happy to provide that. > > Remind me, do we have a "non-fancy" HTML5 mode? > > I think it's better to introduce a new function to check if fancy HTML5. > This would make it easier to adhere to the docstring of > org-html-html5-fancy: > > "This variable is ignored for anything other than HTML5 export" Yup, this was the problem. We do have "non-fancy" HTML5: just HTML5 without the use of any of the new elements like
or