[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 16:57:02 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:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  accessibility, css,
  2nd-opinion                        |  coding-standards
-------------------------------------+-------------------------------------

Comment (by craigfrancis):

 For a second check, focusing on [https://github.com/WordPress/wordpress-
 develop/tree/master/src/wp-content/themes core themes], and a general
 search in the rest of the repo (CSS/JS), I could only find the same
 `[role="contentinfo"]` in "twentytwelve/style.css"; everything else didn't
 seem to be affected by this patch (e.g. `role=separator` and
 `section[role="banner"]`).

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


More information about the wp-trac mailing list