aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-21 14:48:38 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-21 14:48:38 +0200
commita9a901c1362f6a4d6004f445629077e7633abb28 (patch)
tree62e6381618f59b82986eccf8ef59f590529e7844 /.themes/classic/source
parent2a30d9a1eb5219e5335d1afdd214204d61ea6367 (diff)
downloadmy_new_personal_website-a9a901c1362f6a4d6004f445629077e7633abb28.tar.xz
my_new_personal_website-a9a901c1362f6a4d6004f445629077e7633abb28.zip
Fixed misuse of ARIA roles (see http://dev.opera.com/articles/view/introduction-to-wai-aria/)
Diffstat (limited to '.themes/classic/source')
-rw-r--r--.themes/classic/source/_includes/custom/navigation.html2
-rw-r--r--.themes/classic/source/_includes/navigation.html4
-rw-r--r--.themes/classic/source/_layouts/default.html6
-rw-r--r--.themes/classic/source/_layouts/page.html4
-rw-r--r--.themes/classic/source/_layouts/post.html4
-rw-r--r--.themes/classic/source/index.html4
-rw-r--r--.themes/classic/source/javascripts/octopress.js8
7 files changed, 16 insertions, 16 deletions
diff --git a/.themes/classic/source/_includes/custom/navigation.html b/.themes/classic/source/_includes/custom/navigation.html
index 8f091e16..d6bd4246 100644
--- a/.themes/classic/source/_includes/custom/navigation.html
+++ b/.themes/classic/source/_includes/custom/navigation.html
@@ -1,4 +1,4 @@
-<ul role=main-navigation>
+<ul class="main-navigation">
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
</ul>
diff --git a/.themes/classic/source/_includes/navigation.html b/.themes/classic/source/_includes/navigation.html
index c26908f8..9b87017a 100644
--- a/.themes/classic/source/_includes/navigation.html
+++ b/.themes/classic/source/_includes/navigation.html
@@ -1,11 +1,11 @@
-<ul role=subscription data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
+<ul class="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
<li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
{% if site.subscribe_email %}
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
{% endif %}
</ul>
<form action="{{ site.simple_search }}" method="get">
- <fieldset role="site-search">
+ <fieldset role="search">
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
diff --git a/.themes/classic/source/_layouts/default.html b/.themes/classic/source/_layouts/default.html
index d84da44c..17c4e664 100644
--- a/.themes/classic/source/_layouts/default.html
+++ b/.themes/classic/source/_layouts/default.html
@@ -1,14 +1,14 @@
{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
{% include head.html %}
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
- <header>{% include header.html %}</header>
- <nav role=navigation>{% include navigation.html %}</nav>
+ <header role="banner">{% include header.html %}</header>
+ <nav role="navigation">{% include navigation.html %}</nav>
<div id="main">
<div id="content">
{{ content | expand_urls: root_url }}
</div>
</div>
- <footer>{% include footer.html %}</footer>
+ <footer role="contentinfo">{% include footer.html %}</footer>
{% include disqus.html %}
{% include google_analytics.html %}
{% include google_plus_one.html %}
diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html
index 20c17452..4edd3ed5 100644
--- a/.themes/classic/source/_layouts/page.html
+++ b/.themes/classic/source/_layouts/page.html
@@ -3,7 +3,7 @@ layout: default
---
<div>
-<article>
+<article role="article">
{% if page.title %}
<header>
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
@@ -32,7 +32,7 @@ layout: default
{% endif %}
</div>
{% unless page.sidebar == false %}
-<aside role=sidebar>
+<aside class="sidebar">
{% if site.page_asides.size %}
{% include_array page_asides %}
{% else %}
diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html
index e81cc787..3b1208da 100644
--- a/.themes/classic/source/_layouts/post.html
+++ b/.themes/classic/source/_layouts/post.html
@@ -4,7 +4,7 @@ single: true
---
<div>
-<article class="hentry">
+<article class="hentry" role="article">
{% include article.html %}
<footer>
<p class="meta">
@@ -25,7 +25,7 @@ single: true
{% endif %}
</div>
{% unless page.sidebar == false %}
-<aside role=sidebar>
+<aside class="sidebar">
{% if site.post_asides.size %}
{% include_array post_asides %}
{% else %}
diff --git a/.themes/classic/source/index.html b/.themes/classic/source/index.html
index 1e896b0d..e2eb6211 100644
--- a/.themes/classic/source/index.html
+++ b/.themes/classic/source/index.html
@@ -10,7 +10,7 @@ layout: default
{% include article.html %}
</article>
{% endfor %}
- <nav role="pagination">
+ <nav class="pagination">
<div>
{% if paginator.next_page %}
<a class="prev" href="{{paginator.next_page}}">&larr; Older</a>
@@ -22,7 +22,7 @@ layout: default
</div>
</nav>
</div>
-<aside role=sidebar>
+<aside class="sidebar">
{% if site.blog_index_asides.size %}
{% include_array blog_index_asides %}
{% else %}
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index d944e7eb..a23ab502 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -1,7 +1,7 @@
function getNav() {
- var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>');
+ var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('<fieldset class="mobile-nav"></fieldset>').next().append('<select></select>');
mobileNav.children('select').append('<option value="">Navigate&hellip;</option>');
- $('ul[role=main-navigation] a').each(function(link) {
+ $('ul.main-navigation a').each(function(link) {
mobileNav.children('select').append('<option value="'+link.href+'">&bull; '+link.text+'</option>');
});
mobileNav.children('select').bind('change', function(event) {
@@ -19,7 +19,7 @@ function addSidebarToggler() {
$('body').addClass('collapse-sidebar');
}
});
- var sections = $('aside[role=sidebar] > section');
+ var sections = $('aside.sidebar > section');
if (sections.length > 1) {
sections.each(function(section, index){
if ((sections.length >= 3) && index % 3 === 0) {
@@ -29,7 +29,7 @@ function addSidebarToggler() {
$(section).addClass(count);
});
}
- if (sections.length >= 3){ $('aside[role=sidebar]').addClass('thirds'); }
+ if (sections.length >= 3){ $('aside.sidebar').addClass('thirds'); }
}
function testFeatures() {