How to label a loading animation for WAI-ARIA?

The best solution I could come up with was using role alert, and aria-busy=”true”.

<div id="loading" style="display: none;">
    <div class="mgBot15"><span class="txt16" role="alert" aria-busy="true">Working...</span></div>
    <img src="https://stackoverflow.com/questions/38704467/loading.png" alt="loading" />
</div>

Leave a Comment

tech