From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Attributes on HTML tables? Date: Sun, 14 Apr 2013 14:01:03 -0400 Message-ID: <20130414180103.GD69197@BigDog.local> References: <86fvyy1dsp.fsf@iro.umontreal.ca> <87ehegtsde.fsf@ericabrahamsen.net> <87a9p4e24e.fsf@bzg.ath.cx> <87li8os2w9.fsf@ericabrahamsen.net> <87wqs8b0g7.fsf@bzg.ath.cx> <8661zr7r5a.fsf@iro.umontreal.ca> <877gk7qev2.fsf@ericabrahamsen.net> <8738uvq9ne.fsf@ericabrahamsen.net> <20130413204259.GA66764@BigDog.local> <87ehedctd7.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]:57899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URREi-0008FX-Nq for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 14:01:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URREe-0005Ax-In for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 14:01:08 -0400 Received: from [204.62.15.78] (port=42231 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URREe-00058y-Ea for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 14:01:04 -0400 Content-Disposition: inline In-Reply-To: <87ehedctd7.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 Sun, Apr 14, 2013 at 06:13:40PM +0800, Eric Abrahamsen wrote: > Rick Frankel writes: > > > On Sat, Apr 13, 2013 at 01:31:17PM +0800, Eric Abrahamsen wrote: > >> * Org HTML5 Test > >> #+ATTR_HTML: :options html-container article > >> - a :: foo > >> - b :: bar > > note that you just just set #+HTML_CONTAINER: article in the head of the > > file if you want all the containers to be "article"s. > > That would be pretty drastic, though -- it would wrap "article" around a > whole bunch of stuff that shouldn't be an article! I think ultimately > the HTML exporter should grow a slightly more flexible system for > wrapping document sections in containers, but this patch definitely > shouldn't get hung up on that. It specifies the element for the top-level container---by default, something like:
In the case of e.g., a blog or slideshow,
is an appropriate top-level wrapper lelement. Regardless, I'm not sure which object you are expecting the #+ATTR_HTML to apply to in the example above. Here's the html the above section generates: #+BEGIN_HTML

5 A definiton list

a
foo
b
bar
Where the 'outline-text-2' div is actually around the entire body of the section, not just the definition list (there is no explicit wrapper around the definition list). I would argue that to set the element type fro the outer (outline-container) div or the inner (outline-text) div, a property setting would make more sense. I can see using a (headline level) :HTML_CONTAINER property to set the container on a given headline (which i think i will impliment as it is very low impact), and perhaps either an :HTML_CHILD_CONTAINER or :HTML_TEXT_CONTAINER to specify the wrapper on the inner section. rick