Make WordPress Core


Ignore:
Timestamp:
11/01/2021 09:45:45 PM (2 years ago)
Author:
joedolson
Message:

General: Remove role="navigation" from nav elements.

Role="navigation" was required for assistive technology to recognize HTML5 element's native ARIA roles while HTML5 and ARIA were being introduced. With the deprecation of IE11, the role attribute is only required when mapping elements that don't have native role.

Props costdev, mukesh27.
Fixes #54054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/header.php

    r48290 r51967  
    4141
    4242            <div id="navbar" class="navbar">
    43                 <nav id="site-navigation" class="navigation main-navigation" role="navigation">
     43                <nav id="site-navigation" class="navigation main-navigation">
    4444                    <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
    4545                    <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.