Talkback reading the title attribute
Talkback on Android devices has in recent years added the title attribute as a readable tag in the Accessibility tree. It is not a recommended way to contribute to accessible design, but however another nuance to test for when testing Talkback web applications, aka Android mobile website testing.
How it Reads
If an aria-label and a title are present Talkback reads as follows:
- Aria-label then title
This button reads: "This aria-label reads first button. This title reads second"
If title only is present Talkback reads as follows:
- Inner HTML text then title
This button reads: "Test example 2 button. This title reads second"
What to do
Testers should advise Developers to remove the title attribute if it repeats the inner HTML text or aria-label specifically when doing Talkback Web Android testing.