WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: how to trash focus when sighted

for

From: Jonathan Avila
Date: Dec 17, 2019 6:10PM


I'd add on to Steve's comment that activeElement is limited to content not in an iframe. If the element is in an iframe activeElement will return the iFrame. You would need to use a more robust script in that case. For focus highlighting I'd also recommend the Stylus extension where you can create your own focus indicators or a tool like ANDI<https://www.ssa.gov/accessibility/andi/help/install.html> although neither will likely highlight items that rely on aria-activedescendant.



Jonathan