E-mail List Archives
Re: Screen reader events when dynamic tooltip ID refs aredelayed
From: Bryan Garaventa
Date: May 15, 2014 2:03AM
- Next message: Jon Avila: "Re: Inclusive Design 24, by The Paciello Group for GAAD"
- Previous message: mark novak: "Re: Inclusive Design 24, by The Paciello Group for GAAD"
- Next message in Thread: None
- Previous message in Thread: Bryan Garaventa: "Screen reader events when dynamic tooltip ID refs are delayed"
- View all messages in this Thread
Actually I realize my example doesn't really show a scenario that would
happen if the container were dynamically generated after a delay, so the
following would be better for this.
<html>
<head>
<script type="text/javascript">
function testFn(link){
setTimeout(function(){
link.setAttribute('aria-describedby', 'tooltipId');
var div = document.createElement('div');
div.setAttribute('role', 'tooltip');
div.setAttribute('id', 'tooltipId');
div.innerHTML = 'This should be announced';
document.getElementById('insert').appendChild(div);
}, 500);
}
</script>
</head>
<body>
<a href="#" onclick="testFn(this); return false;"
onmouseover="testFn(this);" >
Test
</a>
<div id="insert"></div>
</body>
</html>
I also tried innerHTML, but that doesn't work either. It updates fine in the
browser in the accessibility tree, the accessible name calculation generates
the innerText as the tooltip node label, as it should, but nothing is
announced by JAWS15 or NVDA in IE or FF.
- Next message: Jon Avila: "Re: Inclusive Design 24, by The Paciello Group for GAAD"
- Previous message: mark novak: "Re: Inclusive Design 24, by The Paciello Group for GAAD"
- Next message in Thread: None
- Previous message in Thread: Bryan Garaventa: "Screen reader events when dynamic tooltip ID refs are delayed"
- View all messages in this Thread