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

Inconsistent output when Live Region is inserted dynamically #287

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

Inconsistent output when Live Region is inserted dynamically #287

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

Comments

@JAWS-test
Copy link

JAWS-test commented Sep 4, 2019

Summary

inconsistent output when Live Region is inserted dynamically

  1. save as HTML file:
<!DOCTYPE html>
<<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>live region</title>
	</head>
	<body>
		<div id=1></div>
		
		<h2>without additional div</h2>
		<button onClick="document.getElementById('1').innerHTML='<div role=alert>test1</div>';">1</button>
		<button onClick="document.getElementById('1').innerHTML='<div role=status>test2</div>';">2</button>
		<button onClick="document.getElementById('1').innerHTML='<div aria-live=assertive>test3</div>';">3</button>
		<button onClick="document.getElementById('1').innerHTML='<div aria-live=polite>test4</div>';">4</button>
		
		<h2>with additional div</h2>
		<button onClick="document.getElementById('1').innerHTML='<div><div role=alert>test1</div></div>';">1</button>
		<button onClick="document.getElementById('1').innerHTML='<div><div role=status>test2</div></div>';">2</button>
		<button onClick="document.getElementById('1').innerHTML='<div><div aria-live=assertive>test3</div></div>';">3</button>
		<button onClick="document.getElementById('1').innerHTML='<div><div aria-live=polite>test4</div></div>';">4</button>
		
	</body>
</html>
  1. Press all buttons one after the other

Expected result

  • consistent output between different browsers
  • actually no output should occur if the live region is not available and is inserted dynamically
  • but if there is an output, it should always be done, regardless of the type of the live region and regardless of the nesting level if the live region

Actual result

  • different output between browsers
  • different output depending on type of live region (alert behaves differently than the others in Firefox and Chrome)
  • different output depending on nesting level (Firefox, IE 11)

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

without additional div

Firefox: all
Chrome: only role=alert
IE 11: all

with additional div

Firefox: all except role=alert
Chrome: only role=alert
IE 11: none

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.8.0
IE 11.1268.16299.0

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