standards-support icon indicating copy to clipboard operation
standards-support copied to clipboard

labeling of fieldset is not output correctly (Chrome)

Open JAWS-test opened this issue 6 years ago • 3 comments

Summary

labeling of fieldset is not output correctly (Chrome)

  1. 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>
  1. Use quick navigation (E)
  2. Use element overview (INS+Ctrl+E)
  3. Navigate with Tab keygen
  4. 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

JAWS-test avatar Sep 18 '19 12:09 JAWS-test

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.

hannalaakso avatar Oct 23 '19 10:10 hannalaakso

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 fieldset labels are correctly announced and listed in the "Select a Form Field" window.
  • In Chrome 81.0.4044.138 (Official Build) (64-bit), the fieldset labels are correctly announced, but the "Select a Form Field" window incorrectly provides the visible legend text in the examples using aria-label and aria-labelledby instead of the ARIA values.
  • In IE11 11.778.18362.0, the fieldset label provided by the title attribute is not announced or displayed in the "Select a Form Field" window. Additionally, the visible legend text is provided in the window as exhibited in Chrome.

lamador avatar May 15 '20 15:05 lamador

Tested with JAWS 2024.2405.48 and Chrome Version 125.0.6422.61 (Official Build) (64-bit) can reproduce

stevefaulkner avatar May 21 '24 10:05 stevefaulkner