Twenty Twenty-One: 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>`.

Follow-up to [45942] for Twenty Nineteen.

Props albertomake, poena.
Fixes #51944.
}}}

git-svn-id: https://develop.svn.wordpress.org/trunk@49759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-12-06 16:20:10 +00:00
parent a6e1d392f2
commit f51bcff2f1
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
?>
</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->
</div><!-- #content -->
<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>

View File

@@ -28,5 +28,5 @@
<?php get_template_part( 'template-parts/header/site-header' ); ?>
<div id="content" class="site-content">
<section id="primary" class="content-area">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">