Make WordPress Core


Ignore:
Timestamp:
12/06/2020 04:20:10 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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.
}}}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/header.php

    r49247 r49759  
    2929
    3030        <div id="content" class="site-content">
    31                 <section id="primary" class="content-area">
     31                <div id="primary" class="content-area">
    3232                        <main id="main" class="site-main" role="main">
Note: See TracChangeset for help on using the changeset viewer.