[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Attributes on HTML tables?
From: |
Rick Frankel |
Subject: |
Re: [O] Attributes on HTML tables? |
Date: |
Sat, 13 Apr 2013 13:10:13 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Apr 12, 2013 at 10:06:21AM +0800, Eric Abrahamsen wrote:
> François Pinard <address@hidden> writes:
>
> > Christian Moe <address@hidden> 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
- Re: [O] Attributes on HTML tables?, (continued)
- Re: [O] Attributes on HTML tables?, Bastien, 2013/04/12
- Re: [O] Attributes on HTML tables?, Eric Abrahamsen, 2013/04/12
- Re: [O] Attributes on HTML tables?, Bastien, 2013/04/12
- Re: [O] Attributes on HTML tables?, François Pinard, 2013/04/12
- Re: [O] Attributes on HTML tables?, Eric Abrahamsen, 2013/04/12
- Re: [O] Attributes on HTML tables?, Eric Abrahamsen, 2013/04/13
- Re: [O] Attributes on HTML tables?, Rick Frankel, 2013/04/13
- Re: [O] Attributes on HTML tables?, Eric Abrahamsen, 2013/04/14
- Re: [O] Attributes on HTML tables?, Rick Frankel, 2013/04/14
- Re: [O] Attributes on HTML tables?, Rick Frankel, 2013/04/15
- Re: [O] Attributes on HTML tables?,
Rick Frankel <=
- Re: [O] Attributes on HTML tables?, Bastien, 2013/04/14
- Re: [O] Attributes on HTML tables?, Nicolas Goaziou, 2013/04/10
- Re: [O] Attributes on HTML tables?, Christian Moe, 2013/04/11
- Re: [O] Attributes on HTML tables?, Nicolas Goaziou, 2013/04/11
- Re: [O] Attributes on HTML tables?, Christian Moe, 2013/04/11
- Re: [O] Attributes on HTML tables?, Bastien, 2013/04/11
- Re: [O] Attributes on HTML tables?, Nicolas Goaziou, 2013/04/11