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 09:49:07 -0400 Message-ID: <8f433f7c2e7d4892d6286afc9524d9a6@mail.rickster.com> References: <878v4elu5h.fsf@ericabrahamsen.net> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVj1S-0001B7-VI for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 09:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVj1Q-0003vH-2U for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 09:49:10 -0400 Received: from [204.62.15.78] (port=54778 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVj1P-0003v8-V8 for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 09:49:07 -0400 In-Reply-To: <871u9ytihc.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: emacs-orgmode@gnu.org Cc: eric@ericabrahamsen.net On 25.04.2013 17:20, Eric Abrahamsen wrote: > Who knew this would turn out to be such a fraught issue! All I wanted > was that little green checkmark from the W3C... > > Here's what I think should be an acceptable final patch. I dropped > the > CDATA mess, and came up with a slightly different implementation for > handling self-closing tags. It's maybe a little /bulkier/ than the > previous implementation, but not so hacky, and may continue to be > useful > in the future. There's also a documentation patch. Overall, looks good, but again, i would _strongly_ argue that html5 should generate valid xhtml. If it doesn't, it will really break my post-processing workflow... 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. rick