Make WordPress Core


Ignore:
Timestamp:
09/04/2019 04:26:50 PM (5 years ago)
Author:
afercia
Message:

Bundled Theme: Twenty Nineteen: Fix the nesting of the main element.

The main element must not appear as a descendant of the section element. Correct markup is the first requirement to make user agents and assistive technologies work properly.

Changes the <section> element that was wrapping the <main> element to a <div>.

Props albertomake, ryelle, desrosj, ianbelanger, audrasjb.
Fixes #47066.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/index.php

    r44298 r45942  
    1818?>
    1919
    20     <section id="primary" class="content-area">
     20    <div id="primary" class="content-area">
    2121        <main id="main" class="site-main">
    2222
     
    4242
    4343        </main><!-- .site-main -->
    44     </section><!-- .content-area -->
     44    </div><!-- .content-area -->
    4545
    4646<?php
Note: See TracChangeset for help on using the changeset viewer.