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
n
Describe the bug
infinite loop when there is no number before n on nth-child
nth-child
for example: :nth-cihld(n+2)
:nth-cihld(n+2)
To Reproduce
window = new Window(); document = window.document; const container = document.createElement('div'); container.innerHTML = ` <div> <span>a</span> <span>b</span> <span>c</span> </div> `; const elements = container.querySelectorAll(':nth-child(n+2)'); // inifinite loop // Expected : [ '<span>b</span>', '<span>c</span>' ]
Expected behavior
return the expected value without going into an infinite loop
The text was updated successfully, but these errors were encountered:
capricorn86#686@trivial: Add test no number before 'n'.
a54feaf
capricorn86#686@patch: Fixed infinite loop bug when there is no numbe…
43a5017
…r before 'n'.
Merge pull request #687 from takaya1992/task/686-bugfix-query-selecto…
67d95f0
…r-n-infinite-loop #686@patch: Bugfix query selector n infinite loop.
Thank you for your contribution @takaya1992! 🙂
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v8.1.3
Sorry, something went wrong.
No branches or pull requests
Describe the bug
infinite loop when there is no number before
n
onnth-child
for example:
:nth-cihld(n+2)
To Reproduce
Expected behavior
return the expected value without going into an infinite loop
The text was updated successfully, but these errors were encountered: