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

Focus order becomes incorrect after navigating between pages with a table element inside of an aside element #15043

Closed
epiconsin opened this issue Jun 21, 2023 · 1 comment
Labels
close/invalid needs-technical-investigation A technical investigation is required to progress the issue. p4 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@epiconsin
Copy link

Steps to reproduce:

  1. Navigate to a webpage with a main element and a table element inside of an aside element where focus is set at the top of the page
  2. Navigate to another webpage with a main element and a table element inside of an aside element where focus is set at the top of the page
  3. Navigate back to the webpage in Step 1
  4. Press TAB and see that the focus is on the next element after the table element

Example code:

<main>
    <div>
        <h1>Main</h1>
    </div>
    <!-- More Content -->
</main>
<aside>
    <div>
        <table>
            <!-- Table Content -->
        </table>
    </div>
    <h2>Links</h2>
    <div>
        <a href="website.com">Link1</a>
    </div>
</aside>

Actual behavior:

When loading a webpage with a main element and a table element within an aside element for the first time, focus is correctly set at the top of the webpage. However, when navigating to another webpage with a main element and a table element within an aside element and back, the focus is incorrectly set on the element after the table element when it should be at the top of the page.

Navigating to any other webpage and back will set the focus to the element after the table element, regardless of whether the page navigated to has a table element within an aside element or not. In other words, the bug seems to be persistent once it occurs.

Expected behavior:

When loading a webpage with a main element and a table element within an aside element, focus should always be set at the top of the webpage regardless of the page the user was on before or how the user navigated to the page.

This bug only occurs when using NVDA and not with other popular screen readers.

NVDA logs, crash dumps and other attachments:

No relevant logs, crash dumps, etc.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2023.1.0.27913

Windows version:

Windows 10 Enterprise (10.0.19045 Build 19045)

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

Microsoft Edge Version 114.0.1823.51 (Official build) (64-bit)
Mozilla Firefox Version 114.0.2 (64-bit)
Google Chrome Version 114.0.5735.134 (Official Build) (64-bit)

Other information about your system:

N/A

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.

Yes, same behavior.

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

@seanbudd seanbudd added p4 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation. needs-technical-investigation A technical investigation is required to progress the issue. labels Jun 28, 2023
@Adriani90
Copy link
Collaborator

This is intended behavior. If you focus a link or any other focusable element before opening a new page and going back, NVDA will try to put the focus at the element which was focused before opening the new page.

If you don't focus anything with tab or shift+tab, but go back and forth with alt+left arrow and alt+right arrow, the focus is always at the top of the page as you expect.

For screen reader users it doesn't make sense though to always redirect the focus to the top of a page, because this slows down efficient navigation significantly. The focus should ideally always be put as near as possible to the previously focused element when returning back to a web page.

I am closing as invalid.

@Adriani90 Adriani90 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close/invalid needs-technical-investigation A technical investigation is required to progress the issue. p4 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

3 participants