From 25abf6d66fb5bcf80e967752adc50566aa67cf4e Mon Sep 17 00:00:00 2001 From: Sami Keijonen Date: Sat, 26 Nov 2016 19:35:00 +0200 Subject: [PATCH] Remove aria-haspopup. --- js/navigation.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 6cc0af92..3ffa7cc8 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -5,7 +5,7 @@ * navigation support for dropdown menus. */ ( function() { - var container, button, menu, links, subMenus, i, len; + var container, button, menu, links, i, len; container = document.getElementById( 'site-navigation' ); if ( ! container ) { @@ -44,12 +44,6 @@ // Get all the link elements within the menu. links = menu.getElementsByTagName( 'a' ); - subMenus = menu.getElementsByTagName( 'ul' ); - - // Set menu items with submenus to aria-haspopup="true". - for ( i = 0, len = subMenus.length; i < len; i++ ) { - subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' ); - } // Each time a menu link is focused or blurred, toggle focus. for ( i = 0, len = links.length; i < len; i++ ) {