I have created a chat in HTML5 and I included WAI-ARIA roles and attributes to the HTML code in order to inform screen reader users about new messages. Next, I show the code that I have:
<ul id="conversation" class="conversation" aria-relevant="all" role="log" aria-live="polite">
<li role="listitem">One element</li>
<li role="listitem">Two element</li>
</ul>
Screen readers such as: NVDA, JAWS or Talkback reads new messages without problems. However, VoiceOver does not read them fine. Most of messages are read by VoiceOver; but, messages which are equal are not read by VoiceOver. For example, if another li
element is added to the ul
and this li
element contains the text 'one element', the same text as the first element, the screen reader does not read it.
I do not know if it is a code problem or it is a problem related to the VoiceOver. Do you have any suggestion to solve it?