We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The tabIndex property of an input element is -1 by default instead of 0.
tabIndex
input
-1
0
To Reproduce The following minimal test fails:
const screen = render( <div> <label htmlFor="name">Name</label> <input id="name" type="text" /> </div>, ); const input = screen.getByLabelText('Name'); expect(input.tabIndex).to.eq(0);
Expected behavior I expect the test to pass
Device:
Additional context happy-dom: 16.6.0 node: 22.11.0 mocha: 10.7.3 chai: 4.3.4
The text was updated successfully, but these errors were encountered:
fix: [#1714] Returns 0 by default for the tabIndex property in HTMLAn…
5e4140d
…chorElement, HTMLAreaElement, HTMLButtonElement, HTMLIFrameElement, HTMLInputElement, HTMLMediaElement, HTMLObjectElement, HTMLSelectElement and HTMLTextAreaElement
9cb1d32
…chorElement, HTMLAreaElement, HTMLButtonElement, HTMLIFrameElement, HTMLInputElement, HTMLMediaElement, HTMLObjectElement, HTMLSelectElement and HTMLTextAreaElement (#1719)
Thank you for reporting @it-harrison! 🙂
A fix for this was released in v17.0.2.
Sorry, something went wrong.
feat: [#1714] Adds support for a SSR help package
c6f88b5
capricorn86
Successfully merging a pull request may close this issue.
Describe the bug
The
tabIndex
property of aninput
element is-1
by default instead of0
.To Reproduce
The following minimal test fails:
Expected behavior
I expect the test to pass
Device:
Additional context
happy-dom: 16.6.0
node: 22.11.0
mocha: 10.7.3
chai: 4.3.4
The text was updated successfully, but these errors were encountered: