[wp-trac] [WordPress Trac] #61956: Convert div to main tag for web accessibility
WordPress Trac
noreply at wordpress.org
Mon Sep 9 08:30:39 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 close | Focuses:
| accessibility
-----------------------------------------------+---------------------------
Comment (by poena):
I agree with closing this ticket.
The {{{wp-site-blocks}}} class name is included in all block themes, on an
en element that wraps all blocks.
I would like to learn the motivation behind and reason for why the filter
is needed, without that, it is difficult to re-consider the need.
---
If the proposed filter was used to alter the {{{<div>}}} to {{{<main>}}}
specifically, it would wrap everything, including new and existing blocks
that uses the {{{<main>}}} HTML tag, as well as the site header and site
footer.
Besides the options in the user interface, there are block filters that
may be more appropriate to use, that can filter the tag name on the
correct and appropriate block: a block that only wraps the **actual** main
content.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61956#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list