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

Fix bug in tagQuery()'s $remove(), $after(), $before(), $replaceWith() #348

Merged
merged 7 commits into from Nov 1, 2022

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Oct 31, 2022

Fixes #346

tagQuery()'s $remove(), $after(), $before(), $replaceWith() had a bug that prevented expected behavior when sibling children values where not tag elements.

Other changes:

  • Removed elements are now completely removed from the $children attr. (Not just replaced with NULL which is processed like a no-op.)

@schloerke schloerke marked this pull request as ready for review October 31, 2022 18:25
@schloerke
Copy link
Collaborator Author

the macOS / windows failures are due to GHA installation of R error unrelated to this PR

R/tag_query.R Outdated Show resolved Hide resolved
schloerke and others added 2 commits November 1, 2022 13:36
Co-authored-by: Carson Sievert <cpsievert1@gmail.com>
@schloerke schloerke merged commit 8d1dd6a into main Nov 1, 2022
@schloerke schloerke deleted the tag_query_remove branch November 1, 2022 17:59
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.

tagQuery remove method raises an error
2 participants