mediaelement icon indicating copy to clipboard operation
mediaelement copied to clipboard

Accessibility errors - empty ARIA menus trigger accessibility errors

Open lorikay4 opened this issue 2 years ago • 0 comments

I'm using release 5.1.0, downloaded / updated today, but the problem I'm here to post about predates this version.

Basically, certain video control elements are causing your script to generate empty ULs for non existent settings? The javascript is generating empty ARIA-menus, and the accessibility checkers like WAVE are marking this as an error, because ARIA tagged menus have to have menu items in them, or they are considered broken. So the fix is going to have to be, to not generate these empty menu ULs, but rather to check for the existence of content for the list before inserting the containing

elements.

The code being complained about by WAVE includes:

......

......

Audio Track
Unordered listBroken ARIA menu

lorikay4 avatar Dec 19 '22 22:12 lorikay4