aria-live and field updates

By netvillage, 5 June, 2019

Forum
App Development and Programming

I'm starting out doing some accessibility development. I noticed this, if I have a div set like this:
role="status" aria-live="polite" aria-atomic="false"
If I put some text in there and it is reading it, and I append more text before the reader has finished, it stops where it is at and just reads the new text. I'd like it to finish reading what it was doing and then read the additional text I appended to the field.
I tried dynamically creating a new aria-live="polite" element, but it did the same thing.

Options

Comments

By StephenAlex on Sunday, June 23, 2019 - 02:10

Greetings

I am new at this but I think if you leave it on "polite", the screen reader will only read what's appended.

By netvillage on Sunday, June 23, 2019 - 02:10

In reply to by StephenAlex

It does. but the problem is if you have a long string of text in the "polite" div that it's in the middle of reading, and append some more text, it stops in the middle and reads the new. It would be cool if it would finish out