diff options
author | Simon McVittie <smcv@debian.org> | 2014-10-05 14:34:10 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-10-05 14:34:10 +0100 |
commit | 04aec8ea6098076834540428cdd249a87c89e642 (patch) | |
tree | cc9bb7330dd5d44345d661dcaf4e753d046333ed /templates | |
parent | 823268e5c78be454f0da5013c1bfa7e5d936902d (diff) | |
download | ikiwiki-04aec8ea6098076834540428cdd249a87c89e642.tar ikiwiki-04aec8ea6098076834540428cdd249a87c89e642.tar.gz |
Add WAI-ARIA roles to #main, #comments and #footer when in HTML5 mode
Based on a patch from Patrick.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index c886b22d8..c709c4f85 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -134,7 +134,7 @@ <div id="pagebody"> -<TMPL_IF HTML5><section id="content"><TMPL_ELSE><div id="content"></TMPL_IF> +<TMPL_IF HTML5><section id="content" role="main"><TMPL_ELSE><div id="content"></TMPL_IF> <TMPL_VAR CONTENT> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> @@ -146,7 +146,7 @@ <TMPL_UNLESS DYNAMIC> <TMPL_IF COMMENTS> -<TMPL_IF HTML5><section id="comments"><TMPL_ELSE><div id="comments"></TMPL_IF> +<TMPL_IF HTML5><section id="comments" role="complementary"><TMPL_ELSE><div id="comments"></TMPL_IF> <TMPL_VAR COMMENTS> <TMPL_IF ADDCOMMENTURL> <div class="addcomment"> @@ -161,7 +161,7 @@ </div> -<TMPL_IF HTML5><footer id="footer" class="pagefooter"><TMPL_ELSE><div id="footer" class="pagefooter"></TMPL_IF> +<TMPL_IF HTML5><footer id="footer" class="pagefooter" role="contentinfo"><TMPL_ELSE><div id="footer" class="pagefooter"></TMPL_IF> <TMPL_UNLESS DYNAMIC> <TMPL_IF HTML5><nav id="pageinfo"><TMPL_ELSE><div id="pageinfo"></TMPL_IF> |