Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVDA reads <ul> with 4 items as having 5 items #16905

Open
Epic-Third-Party-Bug-Reporting opened this issue Jul 24, 2024 · 4 comments
Open

NVDA reads <ul> with 4 items as having 5 items #16905

Epic-Third-Party-Bug-Reporting opened this issue Jul 24, 2024 · 4 comments
Labels
p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@Epic-Third-Party-Bug-Reporting

Steps to reproduce:

  1. Go to https://codepen.io/Epic-Third-Party-Bug-Reporting/pen/rNEBZyG
  2. In the iframe, arrow down to the list with four
  3. items and arrow through each item
  4. Observe that the list is said to have five items despite only having four

Actual behavior:

frame list with 5 items List Header 1
bullet Item 1
bullet Item 2
bullet Item 3
bullet Item 4
out of list

Expected behavior:

frame list with 4 items List Header 1
bullet Item 1
bullet Item 2
bullet Item 3
bullet Item 4
out of list

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2023.1.0.27913

Windows version:

Edition: Windows 11 Enterprise
Version: 23H2

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

Chrome Version 126.0.6478.183 (Official Build) (64-bit)

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?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes

@josephsl
Copy link
Collaborator

josephsl commented Jul 24, 2024 via email

@thgcode
Copy link
Contributor

thgcode commented Jul 28, 2024

I think NVDA is considering all the list's child elements as list items, even those that are not <li> elements, this can be tested by creating a <p> inside a <ul> for example and NVDA will report the <p> on the count. Would the correct approach in this case be to introduce another attribute on the virtual buffer that only considers list item count?

@seanbudd seanbudd added p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation. labels Jul 30, 2024
@Adriani90
Copy link
Collaborator

I agree a redesign of list item count needs to be investigated. E.g. for definition lists and description lists, NVDA counts definitions <dd> or descriptions of terms as separate list items which should not be the case.

@thgcode I think your approach would be the right direction, but not only for <li> elements, but also for <dt> elements.

@Adriani90
Copy link
Collaborator

cc: @SaschaCowley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

5 participants