[wp-trac] [WordPress Trac] #54054: Remove role="navigation" from the markup of the the_posts_pagination() function

WordPress Trac noreply at wordpress.org
Mon Sep 6 16:15:47 UTC 2021


#54054: Remove role="navigation" from the markup of the the_posts_pagination()
function
----------------------------+----------------------------------------------
 Reporter:  ilovewpcom      |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  accessibility, coding-standards
  close                     |
----------------------------+----------------------------------------------

Comment (by joedolson):

 The primary problem with assistive technology support for the native HTML5
 elements was directly related to IE - even if the assistive technology
 supports native landmark elements, that support is only meaningful if the
 browser also supports them, since otherwise the information wouldn't be
 added to the accessibility tree that the AT interacts with.

 So, in my opinion, with the removal of IE11 support, it's reasonable to
 also remove role attributes on landmark elements throughout WordPress.
 There may be some situations where this will reduce accessibility, but
 they would be vanishingly rare.

 The accessibility-ready theme guidelines stopped requiring the use of both
 the role attribute and the native element in January 2021.
 (https://make.wordpress.org/themes/handbook/review/accessibility/required
 /#aria-landmark-roles)

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


More information about the wp-trac mailing list