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

Use :nth-child() to fix #365 #367

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Use :nth-child() to fix #365 #367

merged 2 commits into from
Feb 8, 2024

Conversation

julienw
Copy link
Contributor

@julienw julienw commented Jan 31, 2024

Alternative to #366 using a :nth-child selector.

Fixes #365

rniwa and others added 2 commits January 26, 2024 16:38
…irst todo item as completed

The bug was caused by jQuery replacing the whole todo list whenever each todo item is toggled.

Fixed it by running querySelectorAll in each iteration.
Copy link
Member

@rniwa rniwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is better because it uses PageElement abstraction at least for 3.0 release?

@julienw julienw merged commit 0fd1528 into WebKit:main Feb 8, 2024
4 checks passed
jrmuizel pushed a commit to mozilla/Speedometer that referenced this pull request Jul 23, 2024
…eration (WebKit#367)

This PR fixes the issue WebKit#365: jQuery test only ever marks the first todo item as completed

The bug was caused by jQuery replacing the whole todo list whenever each todo item is toggled.

Fixed it by running querySelector with :nth-child in each iteration.

Co-authored-by: Ryosuke Niwa <rniwa@webkit.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jQuery test only ever marks the first todo item as completed
3 participants