HTML5: Improve accessibility of section headings.
commit7574fe6e144f22fc377072b6ad98cfd889aaa685
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 30 Jun 2021 07:48:44 +0000 (30 07:48 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 30 Jun 2021 07:48:44 +0000 (30 07:48 +0000)
tree7a83f9a4f1be13003016b4742830fbd77001eb7a
parentab639466e07c791aff835442eeb01e79a8c7eed6
HTML5: Improve accessibility of section headings.

Mark the internal back-refences from section headings to the ToC
with DPub-ARIA role "doc-backref".

Use "aria-level" instead of a class argument value for section headings
with nesting level > 6 (for level 1 to 6, the level is determined by
the HTML tag).
Mind that in HTML5, heading level 1 is reserved for the document title
and section headings start with level 2.

Add functional test sample for deeply nested sections.
Merge functional tests for additonal HTML5 features.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
12 files changed:
docutils/HISTORY.txt
docutils/docutils/writers/_html_base.py
docutils/docutils/writers/html4css1/__init__.py
docutils/test/functional/expected/misc_rst_html5.html [new file with mode: 0644]
docutils/test/functional/expected/standalone_rst_html5.html
docutils/test/functional/expected/video.html [deleted file]
docutils/test/functional/input/data/embed_images.txt [moved from docutils/test/functional/input/embed_images.txt with 66% similarity]
docutils/test/functional/input/data/video.txt
docutils/test/functional/input/misc_rst_html5.txt [new file with mode: 0644]
docutils/test/functional/tests/embed_images_html5.py [deleted file]
docutils/test/functional/tests/html5_video.py [deleted file]
docutils/test/functional/tests/misc_rst_html5.py [new file with mode: 0644]