[wp-trac] [WordPress Trac] #47722: aria-current is not implemented correctly

WordPress Trac noreply at wordpress.org
Wed Jul 17 16:04:08 UTC 2019


#47722: aria-current is not implemented correctly
-------------------------------------+--------------------------------
 Reporter:  epithetic                |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Menus                    |     Version:  5.2.2
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:  ui, accessibility
-------------------------------------+--------------------------------
Changes (by afercia):

 * keywords:   => reporter-feedback close


Comment:

 @epithetic thanks for your ticket and welcome to Trac.

 I'm not sure I fully understand how the fact the `aria-current` attribute
 is an enumerated type implies it should be set on the `<li>` element in a
 list containing links.

 Enumerated type just means its expected values consist of a set of named
 values.

 Reference:
 https://www.w3.org/TR/wai-aria-1.1/#aria-current
 > Indicates the element that represents the current item **within a
 container or set of related elements**

 Based on that, seems to me the fact the links are wrapped within `<li>`
 elements is not relevant.

 See also the breadcrumbs example in the WAI-ARIA Authoring Practices 1.1,
 where the attribute is placed on the `<a>` element:
 https://www.w3.org/TR/wai-aria-practices-1.1/#breadcrumb
 https://www.w3.org/TR/wai-aria-
 practices-1.1/examples/breadcrumb/index.html

 Worth also noting that placing it on the `<li>` element could make the
 attribute be ignored depending on the browser / screen reader combination
 and the navigation mode.

 I may be missing something though, please do feel free to share more
 details.

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


More information about the wp-trac mailing list