WordPress.org

Make WordPress Core

Changeset 45942


Ignore:
Timestamp:
09/04/2019 04:26:50 PM (3 weeks 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.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
7 edited

Legend:

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

    r44149 r45942  
    1313?>
    1414
    15     <section id="primary" class="content-area">
     15    <div id="primary" class="content-area">
    1616        <main id="main" class="site-main">
    1717
     
    2828
    2929        </main><!-- #main -->
    30     </section><!-- #primary -->
     30    </div><!-- #primary -->
    3131
    3232<?php
  • trunk/src/wp-content/themes/twentynineteen/archive.php

    r44298 r45942  
    1313?>
    1414
    15     <section id="primary" class="content-area">
     15    <div id="primary" class="content-area">
    1616        <main id="main" class="site-main">
    1717
     
    4949        ?>
    5050        </main><!-- #main -->
    51     </section><!-- #primary -->
     51    </div><!-- #primary -->
    5252
    5353<?php
  • trunk/src/wp-content/themes/twentynineteen/image.php

    r45209 r45942  
    1111?>
    1212
    13     <section id="primary" class="content-area">
     13    <div id="primary" class="content-area">
    1414        <main id="main" class="site-main">
    1515
     
    9999
    100100        </main><!-- .site-main -->
    101     </section><!-- .content-area -->
     101    </div><!-- .content-area -->
    102102
    103103<?php
  • 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
  • trunk/src/wp-content/themes/twentynineteen/page.php

    r44149 r45942  
    1313?>
    1414
    15     <section id="primary" class="content-area">
     15    <div id="primary" class="content-area">
    1616        <main id="main" class="site-main">
    1717
     
    3333
    3434        </main><!-- #main -->
    35     </section><!-- #primary -->
     35    </div><!-- #primary -->
    3636
    3737<?php
  • trunk/src/wp-content/themes/twentynineteen/search.php

    r44149 r45942  
    1313?>
    1414
    15     <section id="primary" class="content-area">
     15    <div id="primary" class="content-area">
    1616        <main id="main" class="site-main">
    1717
     
    5050        ?>
    5151        </main><!-- #main -->
    52     </section><!-- #primary -->
     52    </div><!-- #primary -->
    5353
    5454<?php
  • trunk/src/wp-content/themes/twentynineteen/single.php

    r45932 r45942  
    1313?>
    1414
    15     <section id="primary" class="content-area">
     15    <div id="primary" class="content-area">
    1616        <main id="main" class="site-main">
    1717
     
    5555
    5656        </main><!-- #main -->
    57     </section><!-- #primary -->
     57    </div><!-- #primary -->
    5858
    5959<?php
Note: See TracChangeset for help on using the changeset viewer.