Make WordPress Core


Ignore:
Timestamp:
05/24/2019 09:55:21 PM (5 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/custom-background.php

    r45140 r45403  
    247247<h3><?php _e( 'Background Image' ); ?></h3>
    248248
    249 <table class="form-table">
     249<table class="form-table" role="presentation">
    250250<tbody>
    251251<tr>
     
    341341<h3><?php _e( 'Display Options' ); ?></h3>
    342342<form method="post">
    343 <table class="form-table">
     343<table class="form-table" role="presentation">
    344344<tbody>
    345345        <?php if ( get_background_image() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.