[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 16:42:59 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Apr 13, 2013 at 01:31:17PM +0800, Eric Abrahamsen wrote:
> Eric Abrahamsen <address@hidden> writes:
>
> > François Pinard <address@hidden> writes:
> >
> >> Bastien <address@hidden> writes:
> >>
> >>> Eric Abrahamsen <address@hidden> writes:
> >>
> >>>> The first step is probably to research the differences between xhtml and
> >>>> html 5.
> >>
> >>> Well, I would even skip this step and just hack something usable.
>
>
> I sort of fudged on the below. The upside is that it should be pretty
> forgiving now: you can set all kinds of strings as your :html-doctype,
> and it will do a reasonably good job of guessing how to handle it.
>
> Barring actual bugs or poor design decisions, what's left to do is:
>
> 1. Make sure that inlined script and style chunks are escaped correctly,
> I seem to remember reading that the commenting/escaping syntax for these
> chunks varies according to html flavor.
>
> 2. I'd like to add the possibility to put an arbitrary :html-container
> #+BEGIN_SRC emacs-lisp
> #+TITLE: HTML 5 Test
> #+DATE: {{{modification-time(%Y-%m-%d)}}}
> #+HTML_DOCTYPE: html5
> #+BIND: org-html-divs ((preamble "header" "preamble") (content "section"
> "content") (postamble "footer" "postamble"))
> * Org HTML5 Test
> #+ATTR_HTML: :options html-container article
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.
> +(defconst org-html-doctype-alist
> + '(("html4" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">")
> + ("html4-strict" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">
> +\"http://www.w3.org/TR/html4/strict.dtd\"")
> + ("xhtml" . "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
> +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
> + ("html5" . "<!DOCTYPE HTML>"))
I believe that should be (note the lowercase "html"):
("xhtml" . "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
> +\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
("html5" . "<!DOCTYPE html>")
See http://www.w3schools.com/tags/tag_doctype.asp for a fairly
complete list of valid doctypes.
rick
- Re: [O] Attributes on HTML tables?, (continued)
- Re: [O] Attributes on HTML tables?, Nicolas Goaziou, 2013/04/07
- Re: [O] Attributes on HTML tables?, Christian Moe, 2013/04/08
- Re: [O] Attributes on HTML tables?, François Pinard, 2013/04/10
- Re: [O] Attributes on HTML tables?, Eric Abrahamsen, 2013/04/11
- 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 <=
- 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, 2013/04/13
- 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