[wp-trac] [WordPress Trac] #54079: Remove "role" attribute on HTML5 elements with a default landmark role.
WordPress Trac
noreply at wordpress.org
Wed Oct 27 19:31:10 UTC 2021
#54079: Remove "role" attribute on HTML5 elements with a default landmark role.
-------------------------------------+-------------------------------------
Reporter: costdev | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.9
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: accessibility, css,
2nd-opinion | coding-standards
-------------------------------------+-------------------------------------
Changes (by sabernhardt):
* component: General => Bundled Theme
Comment:
Child themes can replace the stylesheet or footer template without editing
the other. So keeping the role for Twenty Twelve would be safer.
If adding the class (without removing the role), the three styles could
cover both situations:
{{{
footer[role="contentinfo"],
footer.contentinfo {
}}}
Then someone could simply revise the footer template in a child theme
without needing to edit in two places.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54079#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list