From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: [PATCH] export to various flavors of (X)HTML Date: Fri, 26 Apr 2013 14:49:49 -0400 Message-ID: <20130426184949.GB79236@BigDog.local> References: <87y5cdkiuj.fsf@ericabrahamsen.net> <20130423010019.GA65517@BigDog.local> <87sj2h3m3s.fsf@ericabrahamsen.net> <86wqrtwisf.fsf@iro.umontreal.ca> <517732AF.6080308@gmail.com> <86y5c82hxy.fsf@iro.umontreal.ca> <871u9ytihc.fsf@ericabrahamsen.net> <8f433f7c2e7d4892d6286afc9524d9a6@mail.rickster.com> <87li85tdsm.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVniQ-0007ay-IC for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 14:49:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVniN-00068H-Rz for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 14:49:50 -0400 Received: from [204.62.15.78] (port=41840 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVniN-000689-PA for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 14:49:47 -0400 Content-Disposition: inline In-Reply-To: <87li85tdsm.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org On Fri, Apr 26, 2013 at 10:14:17AM -0700, Eric Abrahamsen wrote: > Rick Frankel writes: > > > > Therefore, `org-html-close-tag' should check that the doctype is not a > > flavor of html4 rather than a flavor of xhtml. An alternative would be > > to add ("xhtml5" . "") to the doctype alist, and the > > appropriate testing for being html5 and xhtml. > > > > See the discussions of polyglot markup @ > > http://en.wikipedia.org/wiki/Polyglot_markup > > and > > http://www.w3.org/TR/2011/WD-html-polyglot-20110405/#dfn-polyglot-markup > > for the rationale. > > Ah, those were interesting links, I hadn't considered those issues. > Luckily, your second option was a three-line change to the existing > patch: using "xhtml5" now produces the same output as "html5", except > that self-closing tags are self-closed, and there's a xmlns declaration > in the element. Best of all worlds, I hope. Brilliant! I will apply the patch and try it later this weekend... rick