New issue
Advanced search Search tips

Issue 901004 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug
Team-Accessibility



Sign in to add a comment

Active descendant doesn't change in accessibility tree

Project Member Reported by dtseng@google.com, Nov 1

Issue description

- run the below page
- press a key
- log the active descendant (from the accessibility tree) on a platform of your choice

result:
no change

expected:
active descendant changes

<div tabindex=0 id="test" role="combobox" aria-activedescendant=":a">
</div>
<p role="option" id=":a">a</p>
<p role="option" id=":b">b</p>
<script>
  var test = document.getElementById('test');
  var alt = false;
  document.addEventListener('keydown', function(e) {
    if (e.keyCode == 37 || e.keyCode == 38 || e.keyCode == 39 || e.keyCode == 40)
      alt = !alt;
    test.setAttribute('aria-activedescendant', alt ? ':a' : ':b');
  });
</script>
 
Further note:

Looks like the snippet works if you nest the options inside of the containing combobox. The bug for that snippet is then either:
- we should not reflect active descendant if it is outside of the focusable node's descendants
or
- we should fire active descendant changes even if the node is not within the focusable node's descendants.

Hi David,

I recently ran into a regression with lightweight equation walker you built with Volker at the AIM workshop in May and it seems related (though the descendant is inside the focusable node).

The current version is at [1]. 

Exploring the expression used to voice fine on Chrome with NVDA and JAWS. But recently there's no more voicing when exploring (although the label on the focusable node still gets voiced in browse mode). 

I noticed that if I move focus away from the node and then back, the correct active descendant is voiced. Firefox continues to work fine btw.

If it's indeed related, I hope this helps to track it down. 

--Peter

[1] https://krautzource.github.io/mathjax-sre-walker/index.html

Sign in to add a comment