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: fix to issue #132 (implementation of child(through) #133

Merged

Conversation

georgemp
Copy link
Contributor

func child(through path: TypedChildIndexPath) -> Markup? uses the root document node's child count for comparison against the passed in path for valid reference to a child. Changed it to use the current iterated element.

fix #132

Bug/issue #, if applicable:

Summary

Provide a description of what your PR addresses, explaining the expected user experience.
Also, provide an overview of your implementation.

Dependencies

Describe any dependencies this PR might have, such as an associated branch in another repository.

Testing

Describe how a reviewer can test the functionality of your PR. Provide test content to test with if
applicable.

Steps:

  1. Provide setup instructions.
  2. Explain in detail how the functionality can be tested.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

`func child(through path: TypedChildIndexPath) -> Markup?` uses the root document node's child count
for comparison against the passed in path for valid reference to a child. Changed it to use the
current iterated element.

fix apple#132
@QuietMisdreavus
Copy link
Contributor

@swift-ci Please test

Copy link
Contributor

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks for the PR!

@QuietMisdreavus QuietMisdreavus merged commit cb80ea4 into apple:main Jun 20, 2023
2 checks passed
@georgemp georgemp deleted the issue_132_child_through_implementaion_fix branch June 21, 2023 07: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.

Cannot reliably get child element using child(through:) when there are multiple paragraphs
2 participants