diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-21 14:48:38 +0200 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-09-21 14:48:38 +0200 |
commit | a9a901c1362f6a4d6004f445629077e7633abb28 (patch) | |
tree | 62e6381618f59b82986eccf8ef59f590529e7844 /.themes/classic/source/javascripts | |
parent | 2a30d9a1eb5219e5335d1afdd214204d61ea6367 (diff) | |
download | my_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/javascripts')
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 8 |
1 files changed, 4 insertions, 4 deletions
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…</option>'); - $('ul[role=main-navigation] a').each(function(link) { + $('ul.main-navigation a').each(function(link) { mobileNav.children('select').append('<option value="'+link.href+'">• '+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() { |