Make WordPress Core

Changeset 51967


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.

Location:
trunk
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r51884 r51967  
    60066006        },
    60076007        "autoprefixer": {
    6008             "version": "9.8.6",
    6009             "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.6.tgz",
    6010             "integrity": "sha512-XrvP4VVHdRBCdX1S3WXVD8+RyG9qeb1D5Sn1DeLiG2xfSpzellk5k54xbUERJ3M5DggQxes39UGOTP8CFrEGbg==",
     6008            "version": "9.8.8",
     6009            "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz",
     6010            "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==",
    60116011            "dev": true,
    60126012            "requires": {
    60136013                "browserslist": "^4.12.0",
    60146014                "caniuse-lite": "^1.0.30001109",
    6015                 "colorette": "^1.2.1",
    60166015                "normalize-range": "^0.1.2",
    60176016                "num2fraction": "^1.2.2",
     6017                "picocolors": "^0.2.1",
    60186018                "postcss": "^7.0.32",
    60196019                "postcss-value-parser": "^4.1.0"
     
    69436943        "browserify-aes": {
    69446944            "version": "1.2.0",
    6945             "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
     6945            "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
    69466946            "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==",
    69476947            "dev": true,
     
    79787978                "simple-swizzle": "^0.2.2"
    79797979            }
    7980         },
    7981         "colorette": {
    7982             "version": "1.2.1",
    7983             "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.1.tgz",
    7984             "integrity": "sha512-puCDz0CzydiSYOrnXpz/PKd69zRrribezjtE9yd4zvytoRc8+RY/KJPvtPFKZS3E3wP6neGyMe0vOTlHO5L3Pw==",
    7985             "dev": true
    79867980        },
    79877981        "colors": {
     
    1835818352            "dependencies": {
    1835918353                "@sinonjs/fake-timers": {
    18360                     "version": "7.1.1",
    18361                     "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.1.tgz",
    18362                     "integrity": "sha512-am34LJf0N2nON/PT9G7pauA+xjcwX9P6x31m4hBgfUeSXYRZBRv/R6EcdWs8iV4XJjPO++NTsrj7ua/cN2s6ZA==",
     18354                    "version": "7.1.2",
     18355                    "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz",
     18356                    "integrity": "sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==",
    1836318357                    "dev": true,
    1836418358                    "requires": {
     
    1974419738            "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
    1974519739            "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
     19740            "dev": true
     19741        },
     19742        "picocolors": {
     19743            "version": "0.2.1",
     19744            "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
     19745            "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==",
    1974619746            "dev": true
    1974719747        },
     
    2230422304        },
    2230522305        "sass": {
    22306             "version": "1.34.1",
    22307             "resolved": "https://registry.npmjs.org/sass/-/sass-1.34.1.tgz",
    22308             "integrity": "sha512-scLA7EIZM+MmYlej6sdVr0HRbZX5caX5ofDT9asWnUJj21oqgsC+1LuNfm0eg+vM0fCTZHhwImTiCU0sx9h9CQ==",
     22306            "version": "1.43.4",
     22307            "resolved": "https://registry.npmjs.org/sass/-/sass-1.43.4.tgz",
     22308            "integrity": "sha512-/ptG7KE9lxpGSYiXn7Ar+lKOv37xfWsZRtFYal2QHNigyVQDx685VFT/h7ejVr+R8w7H4tmUgtulsKl5YpveOg==",
    2230922309            "dev": true,
    2231022310            "requires": {
     
    2275022750        },
    2275122751        "sinon": {
    22752             "version": "11.1.1",
    22753             "resolved": "https://registry.npmjs.org/sinon/-/sinon-11.1.1.tgz",
    22754             "integrity": "sha512-ZSSmlkSyhUWbkF01Z9tEbxZLF/5tRC9eojCdFh33gtQaP7ITQVaMWQHGuFM7Cuf/KEfihuh1tTl3/ABju3AQMg==",
     22752            "version": "11.1.2",
     22753            "resolved": "https://registry.npmjs.org/sinon/-/sinon-11.1.2.tgz",
     22754            "integrity": "sha512-59237HChms4kg7/sXhiRcUzdSkKuydDeTiamT/jesUVHshBgL8XAmhgFo0GfK6RruMDM/iRSij1EybmMog9cJw==",
    2275522755            "dev": true,
    2275622756            "requires": {
    2275722757                "@sinonjs/commons": "^1.8.3",
    22758                 "@sinonjs/fake-timers": "^7.1.0",
     22758                "@sinonjs/fake-timers": "^7.1.2",
    2275922759                "@sinonjs/samsam": "^6.0.2",
    2276022760                "diff": "^5.0.0",
     
    2277322773                },
    2277422774                "@sinonjs/fake-timers": {
    22775                     "version": "7.1.1",
    22776                     "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.1.tgz",
    22777                     "integrity": "sha512-am34LJf0N2nON/PT9G7pauA+xjcwX9P6x31m4hBgfUeSXYRZBRv/R6EcdWs8iV4XJjPO++NTsrj7ua/cN2s6ZA==",
     22775                    "version": "7.1.2",
     22776                    "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz",
     22777                    "integrity": "sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==",
    2277822778                    "dev": true,
    2277922779                    "requires": {
     
    2280522805        },
    2280622806        "sinon-test": {
    22807             "version": "3.1.0",
    22808             "resolved": "https://registry.npmjs.org/sinon-test/-/sinon-test-3.1.0.tgz",
    22809             "integrity": "sha512-aGQwq6Xl9eJg/8Ugv4Ko4LQWUqjwRYNI8UtxnKa9hmcMEz3HBTR3nnzYrbW4isuRLsJWFuJTUcPGuz7f4XvODg==",
     22807            "version": "3.1.1",
     22808            "resolved": "https://registry.npmjs.org/sinon-test/-/sinon-test-3.1.1.tgz",
     22809            "integrity": "sha512-1sM7QhfTGHXU8umSSyDyIQuAwPkUX2I0JK5WFcjzhChNxDYlVw5Vj0fGoJAaS/FvywKmN2U4YgGC/XqDKhYOTA==",
    2281022810            "dev": true
    2281122811        },
     
    2529525295        },
    2529625296        "uglify-js": {
    25297             "version": "3.13.9",
    25298             "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.9.tgz",
    25299             "integrity": "sha512-wZbyTQ1w6Y7fHdt8sJnHfSIuWeDgk6B5rCb4E/AM6QNNPbOMIZph21PW5dRB3h7Df0GszN+t7RuUH6sWK5bF0g==",
     25297            "version": "3.14.3",
     25298            "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.3.tgz",
     25299            "integrity": "sha512-mic3aOdiq01DuSVx0TseaEzMIVqebMZ0Z3vaeDhFEh9bsc24hV1TFvN74reA2vs08D0ZWfNjAcJ3UbVLaBss+g==",
    2530025300            "dev": true
    2530125301        },
  • trunk/package.json

    r51884 r51967  
    3131        "@wordpress/library-export-default-webpack-plugin": "2.0.5",
    3232        "@wordpress/scripts": "16.1.5",
    33         "autoprefixer": "^9.8.6",
     33        "autoprefixer": "9.8.8",
    3434        "chalk": "4.1.1",
    3535        "check-node-version": "4.1.0",
     
    6565        "prettier": "npm:wp-prettier@2.0.5",
    6666        "qunit": "~2.16.0",
    67         "sass": "^1.34.1",
    68         "sinon": "~11.1.1",
    69         "sinon-test": "~3.1.0",
     67        "sass": "1.43.4",
     68        "sinon": "11.1.2",
     69        "sinon-test": "3.1.1",
    7070        "source-map-loader": "^1.1.3",
    71         "uglify-js": "^3.13.9",
     71        "uglify-js": "3.14.3",
    7272        "uglifyjs-webpack-plugin": "2.2.0",
    7373        "uuid": "8.3.2",
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r50360 r51967  
    145145            <?php endif; ?>
    146146
    147             <nav id="access" role="navigation">
     147            <nav id="access">
    148148                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
    149149                <?php
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r47808 r51967  
    2020        if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
    2121            ?>
    22         <nav class="navigation comment-navigation" role="navigation">
     22        <nav class="navigation comment-navigation">
    2323        <h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2>
    2424        <div class="nav-links">
  • trunk/src/wp-content/themes/twentyfifteen/sidebar.php

    r42343 r51967  
    1212
    1313        <?php if ( has_nav_menu( 'primary' ) ) : ?>
    14             <nav id="site-navigation" class="main-navigation" role="navigation">
     14            <nav id="site-navigation" class="main-navigation">
    1515                <?php
    1616                    // Primary navigation menu.
     
    2626
    2727        <?php if ( has_nav_menu( 'social' ) ) : ?>
    28             <nav id="social-navigation" class="social-navigation" role="navigation">
     28            <nav id="social-navigation" class="social-navigation">
    2929                <?php
    3030                    // Social links navigation menu.
  • trunk/src/wp-content/themes/twentyfourteen/comments.php

    r45932 r51967  
    4747
    4848        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    49     <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
     49    <nav id="comment-nav-above" class="navigation comment-navigation">
    5050        <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
    5151        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
     
    6767
    6868        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    69     <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
     69    <nav id="comment-nav-below" class="navigation comment-navigation">
    7070        <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
    7171        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r51541 r51967  
    5050            </div>
    5151
    52             <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
     52            <nav id="primary-navigation" class="site-navigation primary-navigation">
    5353                <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
    5454                <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r49120 r51967  
    5757
    5858            ?>
    59         <nav class="navigation paging-navigation" role="navigation">
     59        <nav class="navigation paging-navigation">
    6060        <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1>
    6161        <div class="pagination loop-pagination">
     
    8484
    8585        ?>
    86         <nav class="navigation post-navigation" role="navigation">
     86        <nav class="navigation post-navigation">
    8787        <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
    8888        <div class="nav-links">
  • trunk/src/wp-content/themes/twentyfourteen/sidebar.php

    r43571 r51967  
    1717
    1818    <?php if ( has_nav_menu( 'secondary' ) ) : ?>
    19     <nav role="navigation" class="navigation site-navigation secondary-navigation">
     19    <nav class="navigation site-navigation secondary-navigation">
    2020        <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
    2121    </nav>
  • trunk/src/wp-content/themes/twentyseventeen/footer.php

    r46827 r51967  
    2424                if ( has_nav_menu( 'social' ) ) :
    2525                    ?>
    26                     <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
     26                    <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
    2727                        <?php
    2828                            wp_nav_menu(
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php

    r46827 r51967  
    1010
    1111?>
    12 <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
     12<nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
    1313    <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
    1414        <?php
  • trunk/src/wp-content/themes/twentysixteen/footer.php

    r45604 r51967  
    1515        <footer id="colophon" class="site-footer" role="contentinfo">
    1616            <?php if ( has_nav_menu( 'primary' ) ) : ?>
    17                 <nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
     17                <nav class="main-navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
    1818                    <?php
    1919                        wp_nav_menu(
     
    2828
    2929            <?php if ( has_nav_menu( 'social' ) ) : ?>
    30                 <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
     30                <nav class="social-navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
    3131                    <?php
    3232                        wp_nav_menu(
  • trunk/src/wp-content/themes/twentysixteen/header.php

    r51541 r51967  
    5252                    <div id="site-header-menu" class="site-header-menu">
    5353                        <?php if ( has_nav_menu( 'primary' ) ) : ?>
    54                             <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
     54                            <nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
    5555                                <?php
    5656                                    wp_nav_menu(
     
    6565
    6666                        <?php if ( has_nav_menu( 'social' ) ) : ?>
    67                             <nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
     67                            <nav id="social-navigation" class="social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
    6868                                <?php
    6969                                    wp_nav_menu(
  • trunk/src/wp-content/themes/twentythirteen/comments.php

    r51157 r51967  
    5757        if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
    5858            ?>
    59         <nav class="navigation comment-navigation" role="navigation">
     59        <nav class="navigation comment-navigation">
    6060        <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
    6161        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentythirteen' ) ); ?></div>
  • 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">
  • 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>
  • trunk/src/wp-content/themes/twentythirteen/image.php

    r51556 r51967  
    6060
    6161                <div class="entry-content">
    62                     <nav id="image-navigation" class="navigation image-navigation" role="navigation">
     62                    <nav id="image-navigation" class="navigation image-navigation">
    6363                    <span class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> Previous', 'twentythirteen' ) ); ?></span>
    6464                        <span class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?></span>
  • trunk/src/wp-content/themes/twentytwelve/comments.php

    r51157 r51967  
    5959
    6060        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    61         <nav id="comment-nav-below" class="navigation" role="navigation">
     61        <nav id="comment-nav-below" class="navigation">
    6262            <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    6363            <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r51033 r51967  
    395395
    396396        if ( $wp_query->max_num_pages > 1 ) : ?>
    397             <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
     397            <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation">
    398398                <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    399399                <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
  • trunk/src/wp-content/themes/twentytwelve/header.php

    r48290 r51967  
    4141        </hgroup>
    4242
    43         <nav id="site-navigation" class="main-navigation" role="navigation">
     43        <nav id="site-navigation" class="main-navigation">
    4444            <button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
    4545            <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
  • trunk/src/wp-content/themes/twentytwelve/image.php

    r49539 r51967  
    4343                        </footer><!-- .entry-meta -->
    4444
    45                         <nav id="image-navigation" class="navigation" role="navigation">
     45                        <nav id="image-navigation" class="navigation">
    4646                            <span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'twentytwelve' ) ); ?></span>
    4747                            <span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'twentytwelve' ) ); ?></span>
  • trunk/src/wp-content/themes/twentytwenty/header.php

    r48861 r51967  
    8686                        ?>
    8787
    88                             <nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>" role="navigation">
     88                            <nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>">
    8989
    9090                                <ul class="primary-menu reset-list-style">
  • trunk/src/wp-content/themes/twentytwenty/template-parts/footer-menus-widgets.php

    r47122 r51967  
    3535                    <?php if ( $has_footer_menu ) { ?>
    3636
    37                         <nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" role="navigation" class="footer-menu-wrapper">
     37                        <nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" class="footer-menu-wrapper">
    3838
    3939                            <ul class="footer-menu reset-list-style">
  • trunk/src/wp-content/themes/twentytwenty/template-parts/modal-menu.php

    r48861 r51967  
    4646                    ?>
    4747
    48                     <nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>" role="navigation">
     48                    <nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>">
    4949
    5050                        <ul class="modal-menu reset-list-style">
     
    7171                    ?>
    7272
    73                     <nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>" role="navigation">
     73                    <nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>">
    7474
    7575                        <ul class="modal-menu reset-list-style">
     
    115115                <?php if ( has_nav_menu( 'social' ) ) { ?>
    116116
    117                     <nav aria-label="<?php esc_attr_e( 'Expanded Social links', 'twentytwenty' ); ?>" role="navigation">
     117                    <nav aria-label="<?php esc_attr_e( 'Expanded Social links', 'twentytwenty' ); ?>">
    118118                        <ul class="social-menu reset-list-style social-icons fill-children-current-color">
    119119
  • trunk/src/wp-content/themes/twentytwenty/template-parts/navigation.php

    r46827 r51967  
    2323    ?>
    2424
    25     <nav class="pagination-single section-inner<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Post', 'twentytwenty' ); ?>" role="navigation">
     25    <nav class="pagination-single section-inner<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Post', 'twentytwenty' ); ?>">
    2626
    2727        <hr class="styled-separator is-style-wide" aria-hidden="true" />
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/header/site-nav.php

    r51246 r51967  
    1111
    1212<?php if ( has_nav_menu( 'primary' ) ) : ?>
    13     <nav id="site-navigation" class="primary-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'twentytwentyone' ); ?>">
     13    <nav id="site-navigation" class="primary-navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'twentytwentyone' ); ?>">
    1414        <div class="menu-button-container">
    1515            <button id="primary-mobile-menu" class="button" aria-controls="primary-menu-list" aria-expanded="false">
  • trunk/src/wp-includes/link-template.php

    r51285 r51967  
    29002900
    29012901    $template = '
    2902     <nav class="navigation %1$s" role="navigation" aria-label="%4$s">
     2902    <nav class="navigation %1$s" aria-label="%4$s">
    29032903        <h2 class="screen-reader-text">%2$s</h2>
    29042904        <div class="nav-links">%3$s</div>
     
    29122912     * links (%3$s), and ARIA label text if screen-reader-text does not fit that (%4$s):
    29132913     *
    2914      *     <nav class="navigation %1$s" role="navigation" aria-label="%4$s">
     2914     *     <nav class="navigation %1$s" aria-label="%4$s">
    29152915     *         <h2 class="screen-reader-text">%2$s</h2>
    29162916     *         <div class="nav-links">%3$s</div>
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r51127 r51967  
    134134                $title      = trim( strip_tags( $title ) );
    135135                $aria_label = $title ? $title : $default_title;
    136                 echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     136                echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    137137            }
    138138            ?>
  • trunk/src/wp-includes/widgets/class-wp-widget-categories.php

    r50995 r51967  
    121121                $title      = trim( strip_tags( $title ) );
    122122                $aria_label = $title ? $title : $default_title;
    123                 echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     123                echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    124124            }
    125125            ?>
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r51127 r51967  
    6565            $title      = trim( strip_tags( $title ) );
    6666            $aria_label = $title ? $title : $default_title;
    67             echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     67            echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    6868        }
    6969        ?>
  • trunk/src/wp-includes/widgets/class-wp-widget-pages.php

    r50995 r51967  
    102102                $title      = trim( strip_tags( $title ) );
    103103                $aria_label = $title ? $title : $default_title;
    104                 echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     104                echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    105105            }
    106106            ?>
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php

    r51127 r51967  
    135135            $title      = trim( strip_tags( $title ) );
    136136            $aria_label = $title ? $title : $default_title;
    137             $output    .= '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     137            $output    .= '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    138138        }
    139139
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r51127 r51967  
    104104            $title      = trim( strip_tags( $title ) );
    105105            $aria_label = $title ? $title : $default_title;
    106             echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     106            echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    107107        }
    108108        ?>
  • trunk/src/wp-includes/widgets/class-wp-widget-rss.php

    r51107 r51967  
    107107            $title      = trim( strip_tags( $title ) );
    108108            $aria_label = $title ? $title : __( 'RSS Feed' );
    109             echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     109            echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    110110        }
    111111
  • trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php

    r51850 r51967  
    103103            $title      = trim( strip_tags( $title ) );
    104104            $aria_label = $title ? $title : $default_title;
    105             echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
     105            echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    106106        }
    107107
Note: See TracChangeset for help on using the changeset viewer.