Voice Over reads aria-hidden elements when cursoring through webpage

Originator:charlesl
Number:rdar://46900078 Date Originated:December 21, 2018
Status: Resolved:
Product:VoiceOver MacOS Mojave Product Version:10.14
Classification:Assistive Technology Bug Reproducible:Yes
 
When reading a webpage (With Safari and VoiceOver) that has elements tagged with aria-hidden="true", when you cursor up/down through the webpage those elements are spoken to the user which they should not be as they should be hidden to assistive technology.

However what does work is if you ask to read from top of document to Voice Over  cursor (control+option B)  those elements are skipped as one would expect.

Using Chrome and VoiceOver works as one would expect with all hidden elements being skipped.

Simple HTML page which demonstrates this problem.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <title>Test Aria Hidden</title>
        <meta charset="UTF-8"/>
    </head>
    <body>
        <h1>Test for Aria Hidden</h1>
        <p>Some initial text</p>
        <p aria-hidden="true">Hidden text to assistive technology.</p>
        <p>Should be next spoken text.</p>
        <p>Rest of content goes here</p>
     </body>
</html>

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!