Make WordPress Core


Ignore:
Timestamp:
11/01/2021 09:45:45 PM (3 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/functions.php

    r51110 r51967  
    426426        }
    427427        ?>
    428         <nav class="navigation paging-navigation" role="navigation">
     428        <nav class="navigation paging-navigation">
    429429        <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
    430430        <div class="nav-links">
     
    461461        }
    462462        ?>
    463         <nav class="navigation post-navigation" role="navigation">
     463        <nav class="navigation post-navigation">
    464464        <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
    465465        <div class="nav-links">
Note: See TracChangeset for help on using the changeset viewer.