nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.11k stars 638 forks source link

HTML nested elements are not being announced correctly #15481

Open danivarelas opened 1 year ago

danivarelas commented 1 year ago

Steps to reproduce:

I have this HTML structure which is a nested element inside a div with role textbox, when it's focused it should read out loud the inner text of the element, which should be "away Daniel Varela" because the 'X' elements is aria-hidden:

`

Daniel Varela `

In a similar simpler view it looks like this:

<span role="button"> <span class="item"> <span contenteditable="false">Away</span> <span>Daniel Varela</span> <span contenteditable="false">Remove</span> </span> </span>

Actual behavior:

After debugging I found out it only reads the last element which is the 'X' element which is hidden so it does not read anything, and in the second snippet it only reads "Remove" instead of "AwayDaniel VarelaRemove".

Expected behavior:

It should read all text from the element and not just the last one.

System configuration

NVDA version:

2023.2.0.29051

Windows version:

Windows 11

Name and version of other software in use when reproducing the issue:

HTML snippet

seanbudd commented 1 year ago

Welcome @danivarelas ,

We are unable to process this issue as it stands.

Kind Regards, NV Access Software Developers

danivarelas commented 1 year ago

Hi, thanks for replying. Here is the sample pen https://codepen.io/danivarelas/pen/poqVQmJ I'm not able to use NVDA on web but I repro on an Electron app made with React, this is the user agent: User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.43

Expected Speech: test StatusDanielVarelaRemove test ActualSpeech: test Remove test

seanbudd commented 1 year ago

Are you suggesting that the issue cannot be reproduced with the codepen web sample?

Is this only an issue with React and Electron? If so, please provide a sample application so we can reproduce the issue