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.


git-svn-id: https://develop.svn.wordpress.org/trunk@45942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2019-09-04 16:26:50 +00:00
parent a04e391085
commit 8aab6352f2
7 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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