emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Timothy <orgmode@tec.tecosaur.net>
To: David O'Toole <deeteeoh1138@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Validating org XHTML output
Date: Fri, 23 Dec 2022 02:33:30 +0800	[thread overview]
Message-ID: <877cyj9tgx.fsf@tec.tecosaur.net> (raw)
In-Reply-To: <CAAz1J508z4vFMfWEqBJuS4ao72HYE33ECZJMGviA+BTjwrC5gQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

Hi David,

> Hello. While at one time org XHTML output validated successfully, now the default values of certain variables in ox-html cause the resulting
> output to not validate as XHTML 1.0 Strict.
>
> org-html-infojs-template: script tag attribute “type” is required (2x)
> org-html-style-default: style tag attribute “type” is required
>
> Also the following output gives the error “there is no attribute ‘role’”.
>
>  <div id=“table-of-contents” role=“doc-toc”>
>
> The same for this output:
>
>  role=“doc-backlink”

There seem to be known difficulties combining HTML5 ARIA attributes (like `role')
and XHTML. There seem to be a few pages with information about this, such as
<https://www.powermapper.com/blog/w3-aria-why-doesnt-it-validate/>.

All the best,
Timothy

-- 
Timothy (‘tecosaur’/‘TEC’), Org mode contributor.
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/tec>.

      reply	other threads:[~2022-12-22 18:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22 17:52 Validating org XHTML output David O'Toole
2022-12-22 18:33 ` Timothy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cyj9tgx.fsf@tec.tecosaur.net \
    --to=orgmode@tec.tecosaur.net \
    --cc=deeteeoh1138@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).