Make WordPress Core


Ignore:
Timestamp:
05/24/2019 09:55:21 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Make sure layout tables across the admin are correctly linearized.

Adds role="presentation" to the <table> elements used for layout purposes.

Ideally, HTML tables should be used for tabular data. When tables are used for layout purposes, it's important to remove any native semantics so that assistive technologies can correctly announce the table content in a linearized fashion.

Props greatislander, afercia.
Fixes #46899.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-writing.php

    r45140 r45403  
    6363<?php settings_fields( 'writing' ); ?>
    6464
    65 <table class="form-table">
     65<table class="form-table" role="presentation">
    6666<?php if ( get_site_option( 'initial_db_version' ) < 32453 ) : ?>
    6767<tr>
     
    151151</p>
    152152
    153 <table class="form-table">
     153<table class="form-table" role="presentation">
    154154<tr>
    155155<th scope="row"><label for="mailserver_url"><?php _e( 'Mail Server' ); ?></label></th>
Note: See TracChangeset for help on using the changeset viewer.