[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Only use HTML5 fancy elements in HTML5

From: Eric Abrahamsen
Subject: Re: [O] [PATCH] Only use HTML5 fancy elements in HTML5
Date: Tue, 18 Aug 2015 08:49:47 +0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Rasmus <address@hidden> writes:

> Hi,
> Eric Abrahamsen <address@hidden> writes:
>> Currently, if the global variable `org-html-html5-fancy' is t, some
>> elements of HTML export will use fancy elements even when not exporting
>> to HTML5 at all.
>> Specifically, the TITLE of a document will be wrapped in <header> tags,
>> even when exporting to XHTML4. I ran into this while making some epub
>> files and the syntax checker barked at me.
>> This patch fills out the check. There's growing redundancy in this file
>> now -- if it seems desirable to have a `org-html-html5-fancy-p' function
>> that encapsulates the paired checks, I'd be happy to provide that.
> Remind me, do we have a "non-fancy" HTML5 mode?
> I think it's better to introduce a new function to check if fancy HTML5.
> This would make it easier to adhere to the docstring of
> org-html-html5-fancy:
>      "This variable is ignored for anything other than HTML5 export"

Yup, this was the problem. We do have "non-fancy" HTML5: just HTML5
without the use of any of the new elements like <header> or <nav>, which
aren't currently handled right by all browsers. All the various options
make for some fiddly conditionals, but I think it's worth it.

Here's another patch with a new function.


Attachment: 0001-Add-function-to-better-guard-html5-exports.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]