Dynamic content accessibility (dynamic-content)

Dynamic content changes (e.g., through JavaScript) that affect the visible UI, are communicated to users of assistive technologies. This includes updating the accessible name, role, etc.


Aria-label not updated:

This icons textContent changes, but the aria-label doesn't reflect these changes:


computer

Note: Partial auto-testing should be possible. A test can be performed by checking if elements have aria-labels that correspond with their content. However, determining if aria-labels are descriptive requires a human tester or AI.