[wp-trac] [WordPress Trac] #51944: Twenty Twenty-One: The main element must not appear as a descendant of the section element.

WordPress Trac noreply at wordpress.org
Sun Dec 6 22:05:12 UTC 2020


#51944: Twenty Twenty-One: 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 commit dev-    |     Focuses:  accessibility, coding-
  reviewed                           |  standards
-------------------------------------+-------------------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49760" 49760]:
 {{{
 #!CommitTicketReference repository="" revision="49760"
 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.
 Reviewed by SergeyBiryukov, peterwilsoncc.
 Merges [49759] to the 5.6 branch.
 Fixes #51944.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51944#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list