Make WordPress Core


Ignore:
Timestamp:
11/04/2021 06:16:46 PM (3 years ago)
Author:
hellofromTonya
Message:

Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role.

With IE11 no longer supported, the primary problem with assistive technology support for native HTML5 elements no longer applies.

This commit removes the role attribute from the following HTML5 elements with default landmark roles, per formerly required role attributes and W3C.

Follow-up to [17669], [21261], [23452], [24832], [29892], [38833], [40851], [43842], [46271], [49216].

Props costdev, craigfrancis, joedolson, mukesh27, ryokuhi, sabernhardt.
Fixes #54079.

File:
1 edited

Legend:

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

    r51967 r52013  
    3434    <?php wp_body_open(); ?>
    3535    <div id="page" class="hfeed site">
    36         <header id="masthead" class="site-header" role="banner">
     36        <header id="masthead" class="site-header">
    3737            <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    3838                <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
Note: See TracChangeset for help on using the changeset viewer.