RE: Clarification regarding live regions and hidden elements

Thanks, so it seems clear that if something is explicitly hidden from the accessibility tree, then it should not act as a live region unless there is an overriding factor such as focusability in the case of aria-hidden=”true”. Also offscreen classes that are not visible but are still technically rendered in the DOM and exist in the accessibility tree would still act as live regions as normal.

Here’s the fun bit though. What about the following?

<div aria-hidden="false" style="display: none;" aria-live="polite" id="tst1"></div>

<div>
<script type="text/javascript">
var intVal = 0,
intFN = function(){
setInterval(function(){
document.getElementById('tst1').innerHTML = (intVal++);
}, 1000);
};
</script>
<button onclick="intFN()"> Test </button>
</div>

Bryan Garaventa
Accessibility Fellow
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com
415.624.2709 (o)
www.LevelAccess.com

From: Aaron Leventhal [mailto:aleventhal@google.com]
Sent: Wednesday, August 23, 2017 11:49 AM
To: Alexander Surkov <surkov.alexander@gmail.com>
Cc: Bryan Garaventa <bryan.garaventa@levelaccess.com>; Steve Faulkner <faulkner.steve@gmail.com>; ARIA Working Group <public-aria@w3.org>
Subject: Re: Clarification regarding live regions and hidden elements

Exception would be if there is a reason it must be exposed, for example it is focusable/focused even though marked as aria-hidden.

Aaron

On Wed, Aug 23, 2017 at 2:40 PM Alexander Surkov <surkov.alexander@gmail.com<mailto:surkov.alexander@gmail.com>> wrote:
+1. The browsers are not expected to expose the hidden content afaik.

On Wed, Aug 23, 2017 at 10:27 AM, Aaron Leventhal <aleventhal@google.com<mailto:aleventhal@google.com>> wrote:
I'm in agreement -- my understanding was that the only time hidden content is exposed is when pointed to by aria-labelledby/describedby.

You could, however, style a live region offscreen or behind something and it should be spoken.

Aaron

On Tue, Aug 22, 2017 at 1:04 PM Bryan Garaventa <bryan.garaventa@levelaccess.com<mailto:bryan.garaventa@levelaccess.com>> wrote:
Thanks, that’s what I thought as well.

I can’t find anything in the spec that says this however, which makes it difficult for me to enter bugs against it.


Bryan Garaventa
Accessibility Fellow
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com>
415.624.2709<tel:(415)%20624-2709> (o)
www.LevelAccess.com<http://www.LevelAccess.com>

From: Steve Faulkner [mailto:faulkner.steve@gmail.com<mailto:faulkner.steve@gmail.com>]
Sent: Saturday, August 19, 2017 12:57 AM
To: Bryan Garaventa <bryan.garaventa@levelaccess.com<mailto:bryan.garaventa@levelaccess.com>>
Cc: ARIA Working Group <public-aria@w3.org<mailto:public-aria@w3.org>>
Subject: Re: Clarification regarding live regions and hidden elements

If an element is meant to be explicitly hidden, should it remain an active live region regardless?

I don't believe it should, but this does not mean that its contents cannot be referenced via aria-labelledby/describedby when hidden.

--

Regards

SteveF
Current Standards Work @W3C<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>

On 19 August 2017 at 00:25, Bryan Garaventa <bryan.garaventa@levelaccess.com<mailto:bryan.garaventa@levelaccess.com>> wrote:
Hi,
Today I was asked whether live regions are allowed on hidden elements, and I thought this was a simple no, but in looking at the spec and testing, it appears people's understanding of this is all over the map.

E.G An element like a div that includes  CSS display:none or visibility:hidden, or the HTML5 hidden attribute, or even aria-hidden="true".

If an element is meant to be explicitly hidden, should it remain an active live region regardless?

Thanks,
Bryan


Bryan Garaventa
Accessibility Fellow
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com>
415.624.2709<tel:(415)%20624-2709> (o)
www.LevelAccess.com<http://www.LevelAccess.com>

Received on Wednesday, 23 August 2017 18:55:09 UTC