labeling of fieldset is not output correctly (Chrome)
Summary
labeling of fieldset is not output correctly (Chrome)
- save as HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>legend</title>
</head>
<body>
<span id=1>aria-labelledby</span>
<fieldset aria-label=arialabel>
<legend>legend1</legend>
<input aria-label=1>
</fieldset>
<fieldset aria-labelledby=1>
<legend>legend2</legend>
<input aria-label=2>
</fieldset>
<fieldset title=title>
<input aria-label=3>
</fieldset>
</body>
</html>
- Use quick navigation (E)
- Use element overview (INS+Ctrl+E)
- Navigate with Tab keygen
- read with arrow keys
Expected result
Output according to https://w3c.github.io/html-aam/#fieldset-and-legend-elements
- aria-label and aria-labelledby should be output instead of legend (Example 1 and 2)
- title should be output if there is no legend (Example 3)
Actual result
See also: https://github.com/FreedomScientific/VFO-standards-support/issues/233, https://github.com/FreedomScientific/VFO-standards-support/issues/100 and https://github.com/FreedomScientific/VFO-standards-support/issues/241#issuecomment-526060638
Chrome:
- ok, only in element overview the legend is shown instead of the aria-label or aria-labelledby
- additional output of legend when reading with arrow keys
Firefox
- ok
- no output of legend when reading with arrow keys
Additional Information
JAWS version and build number
JAWS 2019.1907.42
Operating System and version
Windows 10
Browser and version:
Chrome 76.0.3809.132 Firefox ESR 60.9.0
We've also run into this issue with Jaws 2018 and IE11 (test page).
- Shift + H announces "There are no headings on this page"
- Ins + F6 announces "No headings found"
Jaws 17 and 18 announce the headings correctly.
The following results were are from testing in Windows 10 using Codepen - Issue 315 Test code which is based on the HTML sample originally provided:
- In Firefox 76.0.1 (64-bit), the
fieldsetlabels are correctly announced and listed in the "Select a Form Field" window. - In Chrome 81.0.4044.138 (Official Build) (64-bit), the
fieldsetlabels are correctly announced, but the "Select a Form Field" window incorrectly provides the visiblelegendtext in the examples usingaria-labelandaria-labelledbyinstead of the ARIA values. - In IE11 11.778.18362.0, the
fieldsetlabel provided by thetitleattribute is not announced or displayed in the "Select a Form Field" window. Additionally, the visiblelegendtext is provided in the window as exhibited in Chrome.
Tested with JAWS 2024.2405.48 and Chrome Version 125.0.6422.61 (Official Build) (64-bit) can reproduce