Skip to content

fix: compare mark names in equalYTextPText#198

Closed
aonnikov wants to merge 1 commit intoyjs:masterfrom
aonnikov:fix-attr-compare
Closed

fix: compare mark names in equalYTextPText#198
aonnikov wants to merge 1 commit intoyjs:masterfrom
aonnikov:fix-attr-compare

Conversation

@aonnikov
Copy link

Closes #197

When comparing text nodes equalYTextPText used to compare number of marks and their attributes, but not names. This did not work properly for marks without attributes. When changed one mark without attributes to mark with different type without attributes, the function result was negative.

Accompanied the fix with unit test that demonstrates the issue.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@aonnikov
Copy link
Author

Hey @dmonad , could you please look into this PR when you have a chance?

@Finesse
Copy link

Finesse commented Mar 19, 2026

@dmonad Why have you closed it? Will it be fixed in another PR?

@dmonad
Copy link
Member

dmonad commented Mar 19, 2026

We are working on a full rewrite. Thank you for the PR @aonnikov ! But I simply don't have the time to review all PRs & issues for the previous release before we move on. I hope you understand.

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.

equalYTextPText does not compare mark names, only attributes

3 participants