question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headings within legends are not exposed correctly in JAWS

See original GitHub issue

Reported by an external audit.

There is an issue with heading elements inside legends in the following assistive technologies.

Heading elements inside legends are associated and read out with the relevant fieldset, but are not surfaced as headings themselves on the page.

For example: when navigating via headings (pressing the ‘h’ key on a page), you would expect the heading to be announced (for example “heading level 1, What is your nationality?”. We instead hear “there are no headings on this page”.

JAWS (observed in JAWS 18+)

  1. Reads ‘there are no headings on this page’
  2. Not reading in context as a heading only a legend
  3. Using ins F6 it is reading ‘no headings found’
  4. Results are the same with CSS turned off

NVDA

Note: the same issue was originally raised against NVDA too, saying that NVDA read out ‘no next heading’ when navigating via headings. However, in Hanna’s investigation in 2019 and my own today (10/11/2021) we were both unable to replicate.

ZoomText

ZoomText’s own audio feedback also does not read the heading when placed within the <legend>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (30 by maintainers)

github_iconTop GitHub Comments

2reactions
vanitabarrettcommented, Mar 30, 2022

I’ve had a chat with @davidc-gds about the double heading announcement, and we agree that it’s difficult to know whether it’s an issue for anyone. We confirmed it shows up as an issue in NVDA too, so it’s not specific to JAWS.

We’re pretty confident that the HTML we’ve got now is the best approach: it’s tested well, it’s valid HTML and generally seems the best performing option.

Given that this issue has already had quite a lot of community involvement and there doesn’t seem to be any obvious alternatives that work better for all screenreaders, I’m going to close this issue as fixed. If we hear reports of the double heading announcement causing issues, we can explore it as a new issue.

2reactions
vanitabarrettcommented, Nov 17, 2021

Update: We’ve had an update from Freedom Scientific which suggests that this bug will be looked at as part of their 2022 cycle (i.e: released as an update at some point to version 2022). Unfortunately the update was quite vague, so they weren’t able to give us any timescales on this, but it at least gives us some idea of when to start chasing again if we don’t hear/see anything in the near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JAWS not reading <legend> within <fieldset> within dynamic ...
I'm doing accessibility work on a dynamically built quiz within a larger site (we're using Knockout bindings ...
Read more >
Group Labels Do Not Guarantee… Uniquity? - Adrian Roselli
In my CodePen I have extra controls at the top and bottom of the page to provide a place from which to test...
Read more >
Jaws (1975) - Trivia - IMDb
The scene where the head pops out from under the boat was not originally scripted. Director Steven Spielberg says he "got greedy" after...
Read more >
ARIA Techniques for WCAG 2.0 - W3C
Landmarks should supplement native semantic markup such as HTML headings, lists and other structural markup. Landmarks are interpretable by WAI-ARIA-aware ...
Read more >
JAWS, IE and Headings in HTML5 | Articles - Accessible Culture
If you use an h1 for every heading, JAWS 12 and 13 beta will, in Internet Explorer but not Firefox, correctly rank the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found