Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Region: The role "alert" is only output if visibility is changed (Chrome) #296

Open
JAWS-test opened this issue Sep 8, 2019 · 0 comments

Comments

@JAWS-test
Copy link

JAWS-test commented Sep 8, 2019

Summary

Live Region: The role "alert" is only output if visibility is changed (Chrome)

  1. save as HTML file:
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>live region</title>
	</head>
	<body>
		<div id=1 hidden role=alert>role=alert</div>
		<div id=2 hidden aria-live=assertive>aria-live=assertive</div>
		
		<button onClick="document.getElementById('1').removeAttribute('hidden');">remove hidden 1</button>
		<button onClick="document.getElementById('2').removeAttribute('hidden');">remove hidden 2</button>
		<button onClick="document.getElementById('1').innerHTML='changed 1';">change 1</button>
		<button onClick="document.getElementById('2').innerHTML='changed 2';">change 2</button>
	</body>
</html>
  1. Press all buttons one after the other

Expected result

  • Consistent output between browsers
  • role=alert is always or never output as alert
  • role=alert is otherwise output like aria-live=assertive

Actual result with Chrome

  • Change of visibility at role=alert: Output of message with addition "alert"
  • Change of visibility at role=assertive: No output
  • Change of content at role=alert: Output of message without addition "alert"
  • Change of content at role=assertive: Output of message
  • Different output with IE 11 and Firefox

see also: w3c/aria-practices#78 and many other problems with live regions: https://github.com/FreedomScientific/VFO-standards-support/issues?q=live+region

Additional Information

JAWS version and build number

JAWS 2019.1907.42

Operating System and version

Windows 8

Browser and version:

Chrome 76.0.3809.100
Firefox 68.0.2
Internet Explorer 11.0.9600.19431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants