From a9a901c1362f6a4d6004f445629077e7633abb28 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 21 Sep 2011 14:48:38 +0200 Subject: Fixed misuse of ARIA roles (see http://dev.opera.com/articles/view/introduction-to-wai-aria/) --- .themes/classic/source/javascripts/octopress.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.themes/classic/source/javascripts') 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('
').next().append(''); + var mobileNav = $('nav[role=navigation] fieldset[role=search]').after('
').next().append(''); mobileNav.children('select').append(''); - $('ul[role=main-navigation] a').each(function(link) { + $('ul.main-navigation a').each(function(link) { mobileNav.children('select').append(''); }); 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() { -- cgit v1.2.1