Skip to content

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

Merged
julienw merged 2 commits into
WebKit:mainfrom
mozilla:with-nth-child
Feb 8, 2024
Merged

julienw merged 2 commits into
WebKit:mainfrom
mozilla:with-nth-child

Conversation

@julienw

@julienw julienw commented Jan 31, 2024 •

Copy link
Copy Markdown
Contributor

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.

@rniwa rniwa left a comment

Copy link
Copy Markdown
Member

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
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