[wp-trac] [WordPress Trac] #51944: TwentyTwentyOne: The main element must not appear as a descendant of the section element.
WordPress Trac
noreply at wordpress.org
Sun Dec 6 16:20:26 UTC 2020
#51944: TwentyTwentyOne: The main element must not appear as a descendant of the
section element.
---------------------------+----------------------------------------------
Reporter: albertomake | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: accessibility, coding-standards
---------------------------+----------------------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49759" 49759]:
{{{
#!CommitTicketReference repository="" revision="49759"
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.
}}}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51944#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list