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.

Built from https://develop.svn.wordpress.org/trunk@45942


git-svn-id: http://core.svn.wordpress.org/trunk@45753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-09-04 16:27:54 +00:00
parent 761cd81a01
commit 8cb7918905
8 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<div class="error-404 not-found"> <div class="error-404 not-found">
@ -27,7 +27,7 @@ get_header();
</div><!-- .error-404 --> </div><!-- .error-404 -->
</main><!-- #main --> </main><!-- #main -->
</section><!-- #primary --> </div><!-- #primary -->
<?php <?php
get_footer(); get_footer();

View File

@ -12,7 +12,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
@ -48,7 +48,7 @@ get_header();
endif; endif;
?> ?>
</main><!-- #main --> </main><!-- #main -->
</section><!-- #primary --> </div><!-- #primary -->
<?php <?php
get_footer(); get_footer();

View File

@ -10,7 +10,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php <?php
@ -98,7 +98,7 @@ get_header();
?> ?>
</main><!-- .site-main --> </main><!-- .site-main -->
</section><!-- .content-area --> </div><!-- .content-area -->
<?php <?php
get_footer(); get_footer();

View File

@ -17,7 +17,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php <?php
@ -41,7 +41,7 @@ get_header();
?> ?>
</main><!-- .site-main --> </main><!-- .site-main -->
</section><!-- .content-area --> </div><!-- .content-area -->
<?php <?php
get_footer(); get_footer();

View File

@ -12,7 +12,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php <?php
@ -32,7 +32,7 @@ get_header();
?> ?>
</main><!-- #main --> </main><!-- #main -->
</section><!-- #primary --> </div><!-- #primary -->
<?php <?php
get_footer(); get_footer();

View File

@ -12,7 +12,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
@ -49,7 +49,7 @@ get_header();
endif; endif;
?> ?>
</main><!-- #main --> </main><!-- #main -->
</section><!-- #primary --> </div><!-- #primary -->
<?php <?php
get_footer(); get_footer();

View File

@ -12,7 +12,7 @@
get_header(); get_header();
?> ?>
<section id="primary" class="content-area"> <div id="primary" class="content-area">
<main id="main" class="site-main"> <main id="main" class="site-main">
<?php <?php
@ -54,7 +54,7 @@ get_header();
?> ?>
</main><!-- #main --> </main><!-- #main -->
</section><!-- #primary --> </div><!-- #primary -->
<?php <?php
get_footer(); get_footer();

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45936'; $wp_version = '5.3-alpha-45942';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.