Skip to content
Permalink
Browse files

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
  • Loading branch information...
afercia committed Sep 4, 2019
1 parent a04e391 commit 8aab6352f2c913964e313e029786954a67fd8b55
@@ -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 @@
</div><!-- .error-404 -->

</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->

<?php
get_footer();
@@ -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 @@
endif;
?>
</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->

<?php
get_footer();
@@ -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 @@
?>

</main><!-- .site-main -->
</section><!-- .content-area -->
</div><!-- .content-area -->

<?php
get_footer();
@@ -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 @@
?>

</main><!-- .site-main -->
</section><!-- .content-area -->
</div><!-- .content-area -->

<?php
get_footer();
@@ -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 @@
?>

</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->

<?php
get_footer();
@@ -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 @@
endif;
?>
</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->

<?php
get_footer();
@@ -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 @@
?>

</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->

<?php
get_footer();

0 comments on commit 8aab635

Please sign in to comment.
You can’t perform that action at this time.