Steps to reproduce:
Given the following html:
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<figure aria-label="Label for figure" aria-description="A Description">
<p aria-hidden="true">I'm paragraph text</p>
</figure>
</body>
NVDA will not read the label or description for the figure element. This appears to be due to the child <p> having aria-hidden="true". When the aria-hidden attribute is removed NVDA will read the figure's label and description as expected.
Also, changing the <figure> to a <div> with a role="figure" reads as expected, so the following will read the label and description while properly ignoring the child <p>:
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<div aria-role="figure" aria-label="Label for figure" aria-description="A Description">
<p aria-hidden="true">I'm paragraph text</p>
</div>
</body>
Actual behavior:
The <figure> label and description attributes are not read when there is a child element that has aria-hidden="true"
Expected behavior:
NVDA should read the label and description attributes and ignore the hidden child elements using the <figure> element.
NVDA logs, crash dumps and other attachments:
System configuration
NVDA installed/portable/running from source:
NVDA version:
2022.4.0.27401
Windows version:
Version 10.0.19044 Build 19044
Name and version of other software in use when reproducing the issue:
Tested in Firefox and Chrome
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
No
If NVDA add-ons are disabled, is your problem still occurring?
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Steps to reproduce:
Given the following html:
NVDA will not read the label or description for the figure element. This appears to be due to the child
<p>having aria-hidden="true". When the aria-hidden attribute is removed NVDA will read the figure's label and description as expected.Also, changing the
<figure>to a<div>with a role="figure" reads as expected, so the following will read the label and description while properly ignoring the child<p>:Actual behavior:
The
<figure>label and description attributes are not read when there is a child element that has aria-hidden="true"Expected behavior:
NVDA should read the label and description attributes and ignore the hidden child elements using the
<figure>element.NVDA logs, crash dumps and other attachments:
System configuration
NVDA installed/portable/running from source:
NVDA version:
2022.4.0.27401
Windows version:
Version 10.0.19044 Build 19044
Name and version of other software in use when reproducing the issue:
Tested in Firefox and Chrome
Other information about your system:
Other questions
Does the issue still occur after restarting your computer?
Yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
No
If NVDA add-ons are disabled, is your problem still occurring?
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?