[wp-trac] [WordPress Trac] #48920: role="navigation" no longer necessary on <nav> element in the_posts_navigation

WordPress Trac noreply at wordpress.org
Fri Jan 10 17:20:33 UTC 2020


#48920: role="navigation" no longer necessary on <nav> element in
the_posts_navigation
--------------------------+------------------------------
 Reporter:  philbuchanan  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by afercia):

 Thank you for the additional details. Yes, it is true that it's redundant
 and it will also trigger a HTML validation warning (not an error, just a
 warning). As said, it's a deliberate choice for backwards compatibility.
 Internet Explorer 11 and old screen readers need to be still supported,
 especially considering that some commercial screen readers are pretty
 expensive and users refrain from updating.

 According to the latest WebAIM survey, 10,9% of screen reader users still
 use IE 11. https://webaim.org/projects/screenreadersurvey8/#browsers

 That said, the double "navigation" announcement could happen for unrelated
 reasons. For example, an aria-label that contains the word "Navigation":

 `<nav role="navigation" aria-label="Navigation" ... >`

 As far as I can tell, the WordPress admin and the Bundled themes avoid
 this, but it may be used on some themes. In the link-template example you
 provided, the default values are announced as "Navigation" (role) and
 "Posts navigation" (default aria-label)O

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


More information about the wp-trac mailing list