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, 19 Apr 2013 11:37:51 -0400 Message-ID: References: <878v4elu5h.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]:56119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTDNu-0003aU-MZ for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 11:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTDNn-0004R6-VR for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 11:37:58 -0400 Received: from [204.62.15.78] (port=59785 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTDNn-0004Ql-Sq for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 11:37:51 -0400 In-Reply-To: <878v4elu5h.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 On 19.04.2013 05:57, Eric Abrahamsen wrote: > I'm starting a new thread for this since the previous discussion was > buried in with something tangential. > I'm not proud of some of the implementation (self-closing vs > non-self-closing tags are ugly, and I wish org-html-html5-p and > org-html-xhtml-p were variables, not functions), but there it is, it > seems to work. > > If this is deemed okay I'll send a version of the patch with a proper > commit message, and also updated documentation. I disagree with the minimized closing patch change. All versions of html accept the " />" idiom (with the extra space so that html4 only browsers don't break) for minimized tags (also ">" is, i believe, always valid). html5 certainly accepts valid xhtml as input. It would entirely break e.g, nxml-mode or xsl post-processing to make this change. Other things that don't need to be removed for html5: - CDATA escapes - xmns: .. xml:lang declarations (as long as you keep the html valid xml) As a positive side effect, backing out these changes would simplify the patch a lot :) The doctype (and fix to the text/javascript closing tag) changes look great. rick