summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-05 21:16:25 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-05 21:16:25 +0200
commitd1c18ff2567cdaf9969fe719e30e3823e0fae738 (patch)
tree7b781829e6bb3bf02591b8786dc3257d0e81c2fe /template/en
parentfe75edaf698f6bdfb66d8784e0f6ca191212efd3 (diff)
downloadbugzilla-d1c18ff2567cdaf9969fe719e30e3823e0fae738.tar.gz
bugzilla-d1c18ff2567cdaf9969fe719e30e3823e0fae738.tar.xz
Bug 1143502: Use structural HTML5 elements instead of <div>
r=dkl a=sgreen
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/footer.html.tmpl10
-rw-r--r--template/en/default/global/header.html.tmpl20
2 files changed, 21 insertions, 9 deletions
diff --git a/template/en/default/global/footer.html.tmpl b/template/en/default/global/footer.html.tmpl
index 7cc5e1b44..7390a6d99 100644
--- a/template/en/default/global/footer.html.tmpl
+++ b/template/en/default/global/footer.html.tmpl
@@ -12,15 +12,17 @@
#%]
[% Hook.process('main-end') %]
- </div>
+ </main>
- <div id="footer">
+ <footer id="footer">
<div class="intro">[% Hook.process('intro') %]</div>
- [% PROCESS "global/useful-links.html.tmpl" %]
+ <nav>
+ [% PROCESS "global/useful-links.html.tmpl" %]
+ </nav>
<div class="outro">[% Hook.process('outro') %]</div>
- </div>
+ </footer>
[% Hook.process("end") %]
</body>
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index f63b175ec..d59ecef8b 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -228,6 +228,16 @@
[% PROCESS format_js_link %]
[% END %]
+ [%# IE8 doesn't understand these HTML5 elements. So we have to declare them here. %]
+ <!--[if lt IE 9]>
+ <script>
+ document.createElement('header');
+ document.createElement('nav');
+ document.createElement('main');
+ document.createElement('footer');
+ </script>
+ <![endif]-->
+
[%# this puts the live bookmark up on firefox for the Atom feed %]
[% IF atomlink %]
<link rel="alternate"
@@ -248,7 +258,7 @@
[%+ class FILTER css_class_quote %]
[% END %] yui-skin-sam">
- <div id="header">
+ <header id="header">
[% INCLUDE global/banner.html.tmpl %]
<div id="titles">
@@ -263,9 +273,9 @@
[% END %]
</div>
- <div id="common_links">
+ <nav id="common_links">
[% PROCESS "global/common-links.html.tmpl" qs_suffix = "_top" %]
- </div>
+ </nav>
[% IF Bugzilla.languages.size > 1 %]
<div id="lang_links_container" class="bz_default_hidden">
@@ -284,9 +294,9 @@
</ul>
</div>
[% END %]
- </div>
+ </header>
- <div id="bugzilla-body">
+ <main role="main" id="bugzilla-body">
[% IF Param('announcehtml') %]
[% Param('announcehtml') FILTER none %]
[% END %]