On Fri, Apr 12, 2013 at 10:06:21AM +0800, Eric Abrahamsen wrote: > François Pinard <pin...@iro.umontreal.ca> writes: > > > Christian Moe <m...@christianmoe.com> writes: > > > > While on this subject! :-) > > > > Could Org allow the output of HTML5 rather than XHTML, under the control > > of some option? I've read that some frameworks really expect HTML5 to > > work properly, such an option might ease inter-operation between > > exported Org and such frameworks. > > 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). 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) 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). rick ----- %< --------- #+TITLE: HTML 5 Test #+DATE: {{{modification-time(%Y-%m-%d)}}} #+HTML_DOCTYPE: <!DOCTYPE html> #+BIND: org-html-xml-declaration "" #+BIND: org-html-head-include-default-style nil #+BIND: org-html-table-tag "<table>" #+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