Carry On Testing 2023

In my role at TPGi I regularly get asked for advice on how stuff works. For example, the other day I was asked by a colleague “Can aria-current be used […]

The post Carry On Testing 2023 appeared first on TPGi.


This content originally appeared on TPGi and was authored by Steve Faulkner

2 bottles of curdled milk.

In my role at TPGi I regularly get asked for advice on how stuff works. For example, the other day I was asked by a colleague “Can aria-current be used on a span?”.

How bad advice gets propagated

My initial response was: aria-current is only exposed on a HTML element with a strong explicit or implicit role. The span element has an implicit role=generic and will be ignored by assistive technology as hinted at in the browser accessibility tree.

As with many of the questions I am asked, the information is used to advise others in the team, and the advice may well result in a specific case of code usage by a client being deemed conforming or failing of a WCAG Success Criterion. It may also be included in more general  Knowledge content we produce. In either scenario, if the advice is incorrect it will have practical impacts.

Check myself

One of the traits I like that I have is, despite doing the job for 20+ years, I still question my own advice and am not afraid to admit I am wrong. After providing the initial advice about aria-current I did what i always advise others to do: I tested it.

Test cases

See the Pen Untitled by steve faulkner (@stevef) on CodePen.

Findings

What I found in testing was that contrary to my initial advice, aria-current is exposed in the browser accessibility tree regardless of role (implicit role=generic or explicit role=none)

It is announced by Screen readers such as JAWS, NVDA and VoiceOver on the test cases. Try it for yourself. Feedback welcome!

 

The post Carry On Testing 2023 appeared first on TPGi.


This content originally appeared on TPGi and was authored by Steve Faulkner


Print Share Comment Cite Upload Translate Updates
APA

Steve Faulkner | Sciencx (2023-01-03T11:08:36+00:00) Carry On Testing 2023. Retrieved from https://www.scien.cx/2023/01/03/carry-on-testing-2023/

MLA
" » Carry On Testing 2023." Steve Faulkner | Sciencx - Tuesday January 3, 2023, https://www.scien.cx/2023/01/03/carry-on-testing-2023/
HARVARD
Steve Faulkner | Sciencx Tuesday January 3, 2023 » Carry On Testing 2023., viewed ,<https://www.scien.cx/2023/01/03/carry-on-testing-2023/>
VANCOUVER
Steve Faulkner | Sciencx - » Carry On Testing 2023. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/01/03/carry-on-testing-2023/
CHICAGO
" » Carry On Testing 2023." Steve Faulkner | Sciencx - Accessed . https://www.scien.cx/2023/01/03/carry-on-testing-2023/
IEEE
" » Carry On Testing 2023." Steve Faulkner | Sciencx [Online]. Available: https://www.scien.cx/2023/01/03/carry-on-testing-2023/. [Accessed: ]
rf:citation
» Carry On Testing 2023 | Steve Faulkner | Sciencx | https://www.scien.cx/2023/01/03/carry-on-testing-2023/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.