WebAIM - Web Accessibility In Mind

E-mail List Archives

Does aria-owns child need to exist prior to being used?

for

From: Mark Magennis
Date: Dec 12, 2018 3:25AM


I'm looking at an aXe error: Invalid ARIA attribute value aria-owns="typeahead-list".

As you can probably guess, this is on a typeahead search input where a list of suggestions pops up when the user starts typing into the search field. aXe has been run when focus is not in the search field, before the list has appeared, but when the aria-owns attribute already exists with value of the future list's id.

My question is, will AT recognise the parent-child relationship if the id only exists after the field has received focus? Is timing likely to be an issue? For instance, if the list is created as soon as the search field receives focus, or not until the user types a character into the field?

Alternatively, what if the aria-owns attribute was also added dynamically at the same time as the list, either when the search field receives focus or when the user types a character?

Anyone know the answer so I don't have to create a test implementation?

Thanks,
Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist