[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] export to various flavors of (X)HTML
From: |
Eric Abrahamsen |
Subject: |
Re: [O] [PATCH] export to various flavors of (X)HTML |
Date: |
Fri, 26 Apr 2013 10:14:17 -0700 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux) |
Rick Frankel <address@hidden> writes:
> On 25.04.2013 17:20, Eric Abrahamsen wrote:
>> Who knew this would turn out to be such a fraught issue! All I wanted
>> was that little green checkmark from the W3C...
>>
>> Here's what I think should be an acceptable final patch. I dropped
>> the
>> CDATA mess, and came up with a slightly different implementation for
>> handling self-closing tags. It's maybe a little /bulkier/ than the
>> previous implementation, but not so hacky, and may continue to be
>> useful
>> in the future. There's also a documentation patch.
>
> Overall, looks good, but again, i would _strongly_ argue that html5
> should generate valid xhtml.
> If it doesn't, it will really break my post-processing workflow...
>
> Therefore, `org-html-close-tag' should check that the doctype is not a
> flavor of html4 rather than a flavor of xhtml. An alternative would be
> to add ("xhtml5" . "<!DOCTYPE html>") to the doctype alist, and the
> appropriate testing for being html5 and xhtml.
>
> See the discussions of polyglot markup @
> http://en.wikipedia.org/wiki/Polyglot_markup
> and
> http://www.w3.org/TR/2011/WD-html-polyglot-20110405/#dfn-polyglot-markup
> for the rationale.
Ah, those were interesting links, I hadn't considered those issues.
Luckily, your second option was a three-line change to the existing
patch: using "xhtml5" now produces the same output as "html5", except
that self-closing tags are self-closed, and there's a xmlns declaration
in the <html> element. Best of all worlds, I hope.
E
0011-ox-html.el-Export-to-various-flavors-of-X-HTML.patch
Description: Text Data
- Re: [O] [PATCH] export to various flavors of (X)HTML, (continued)
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/22
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Samuel Wales, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Carsten Dominik, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, François Pinard, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, Christian Wittern, 2013/04/23
- Re: [O] [PATCH] export to various flavors of (X)HTML, François Pinard, 2013/04/24
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/25
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/26
- Re: [O] [PATCH] export to various flavors of (X)HTML,
Eric Abrahamsen <=
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/26
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/29
- Re: [O] [PATCH] export to various flavors of (X)HTML, Nicolas Goaziou, 2013/04/29
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/30
- Re: [O] [PATCH] export to various flavors of (X)HTML, Rick Frankel, 2013/04/30
- Re: [O] [PATCH] export to various flavors of (X)HTML, Eric Abrahamsen, 2013/04/30