From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Attributes on HTML tables? Date: Sat, 13 Apr 2013 13:10:13 -0400 Message-ID: <20130413171013.GA66674@BigDog.local> References: <86bo9rnj6q.fsf@iro.umontreal.ca> <87ppy66eke.fsf@bzg.ath.cx> <878v4uxjp6.fsf@gmail.com> <87mwtavzgv.fsf@gmail.com> <86fvyy1dsp.fsf@iro.umontreal.ca> <87ehegtsde.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR3xu-0000pD-W2 for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 13:10:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UR3xs-0006Jf-FP for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 13:10:14 -0400 Received: from [204.62.15.78] (port=56935 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UR3xs-0006Jb-3s for emacs-orgmode@gnu.org; Sat, 13 Apr 2013 13:10:12 -0400 Received: from BigDog.local (pool-72-89-40-63.nycmny.fios.verizon.net [72.89.40.63]) by mail.rickster.com (Postfix) with ESMTPS id 52B8A22FD2 for ; Sat, 13 Apr 2013 13:10:12 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87ehegtsde.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 Fri, Apr 12, 2013 at 10:06:21AM +0800, Eric Abrahamsen wrote: > Fran=E7ois Pinard writes: >=20 > > Christian Moe writes: > > > > While on this subject! :-) > > > > Could Org allow the output of HTML5 rather than XHTML, under the cont= rol > > of some option? I've read that some frameworks really expect HTML5 t= o > > work properly, such an option might ease inter-operation between > > exported Org and such frameworks. >=20 > I'm curious about this possibility as well -- how much work would it be= ? Sorry, late to the thread, i've been laid up. Anyway, the xhtml output from ox-html _should_ be mostly valid html5 (valid xhtml 1.0 in general should be valid html5). =20 However, you will need to change the html-table-tag to not use attributes, and remove the xml declaration (which is a warning and not an error in html5) =20 Here's a sample org file (which changes the divs to be more "html5ish" as well, not necessary) which validates as HTML5: (btw, i've remove the scripts and default-styles just to make the html output smaller, the file will validate even with them in the output). =20 rick =20 ----- %< --------- #+TITLE: HTML 5 Test #+DATE: {{{modification-time(%Y-%m-%d)}}} #+HTML_DOCTYPE: #+BIND: org-html-xml-declaration "" #+BIND: org-html-head-include-default-style nil #+BIND: org-html-table-tag "" #+BIND: org-html-scripts "" #+BIND: org-html-divs ((preamble "header" "preamble") (content "section" "content") (postamble "footer" "postamble")) * Org HTML5 Test ok? * How about a table | col1 | col2 | |------+------| | a | 1 | | b | 2 | * And a list - a - b - c * A definiton list - a :: foo - b :: bar =20