[wp-trac] [WordPress Trac] #61956: Convert div to main tag for web accessibility

WordPress Trac noreply at wordpress.org
Fri Aug 30 10:20:57 UTC 2024


#61956: Convert div to main tag for web accessibility
-----------------------------------------+------------------------------
 Reporter:  upendmca                     |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  assigned
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Themes                       |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  accessibility
-----------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch has-testing-info => has-patch reporter-feedback


Comment:

 Hi and welcome to WordPress Core Trac!

 Could you explain how you want to use the `wp-site-blocks` wrapper?

 Twenty Twenty-One:
 - is not a block-based theme, so it does not output a `wp-site-blocks`
 wrapper
 - already [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/header.php?rev=55276#L37 has a <main>
 element]

 A document must only have one `main` element (unless additional `main`
 elements are hidden). [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Element/main#try_it MDN docs]

 Related: GB35354

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


More information about the wp-trac mailing list