From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: [PATCH] export to various flavors of (X)HTML Date: Mon, 22 Apr 2013 21:00:19 -0400 Message-ID: <20130423010019.GA65517@BigDog.local> References: <878v4elu5h.fsf@ericabrahamsen.net> <87y5cdkiuj.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]:48001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UURar-0003Jb-Fv for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 21:00:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UURao-000228-FE for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 21:00:25 -0400 Received: from [204.62.15.78] (port=54955 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UURao-000220-BK for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 21:00:22 -0400 Content-Disposition: inline In-Reply-To: <87y5cdkiuj.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 Sat, Apr 20, 2013 at 10:59:32AM +0800, Eric Abrahamsen wrote: > > The " />" style doesn't validate for html4, that's what I was going on. > It certainly doesn't make my browser explode, but I wanted that little > green checkmark! If we can live with that, that's fine, or I can try to > come up with a less hacky way of handling closing tags -- a macro > maybe. It should validate. According to the w3c compatibility guidelines (http://www.w3.org/TR/xhtml1/guidelines.html): C.2. Empty Elements Include a space before the trailing / and > of empty elements, e.g.
,
and Karen. Also, use the minimized tag syntax for empty elements, e.g.
, as the alternative syntax

allowed by XML gives uncertain results in many existing user agents. C.3. Element Minimization and Empty Element Content Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use

and not

). > > The xmns declaration, on the other hand, seems quite meaningless for > anything that isn't xhtml (even if it doesn't actually break), and it's > only a couple of lines of code to deal with, I'd rather keep that in > there... fair enough. rick