Permalink
Browse files

Merge pull request #1052 from samikeijonen/issue/1045

Remove aria-haspopup: props @samikeijonen
  • Loading branch information...
2 parents 3c7fe6f + 25abf6d commit e38cfc29bca6d414393f3aa16303f8f6a7ea5b0e @karmatosed karmatosed committed on GitHub Dec 23, 2016
Showing with 1 addition and 7 deletions.
  1. +1 −7 js/navigation.js
View
@@ -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++ ) {

0 comments on commit e38cfc2

Please sign in to comment.