-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix splitCssText again #1640
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
Merged
eoghanmurray
merged 18 commits into
rrweb-io:master
from
eoghanmurray:fix-splitCssText-again
Feb 6, 2025
Merged
Fix splitCssText again #1640
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fb694b2
Fix up the 'should replace the existing DOM nodes on iframe navigatio…
eoghanmurray 5962d03
Fix a case I previously forgot about, when there are multiple matches…
eoghanmurray 08a80ab
Failing example extracted from large files identified by Paul D'Ambra…
eoghanmurray 43df807
Fix that we weren't stopping when going from many matches to zero mat…
eoghanmurray d59c1ef
Avoid (probably) a happydom bug
eoghanmurray 21beccb
Disabliing to prove failure
eoghanmurray e789129
Make the matches go from 'many' to 'none'
eoghanmurray a72c4e1
Pick the best when there are many splits by looking at previous chunk…
eoghanmurray b3a5a12
This seems more straightforward
eoghanmurray e02e608
Rename some variables for clarity
eoghanmurray 0347a36
yarn format
eoghanmurray d0fb0c5
Add changeset
eoghanmurray e5a9550
Mention what triggers the bug
eoghanmurray 01d96bb
Solve the same bug another way; by normalization
eoghanmurray 86796ac
Apply formatting changes
eoghanmurray 3a452e3
Don't go past 100 iterations trying to find a unique substring
eoghanmurray 7a32e49
Add a tscomment to explain the `_testNoPxNorm` test-only parameter
eoghanmurray 5743c7e
Merge remote-tracking branch 'upstream/master' into fix-splitCssText-…
eoghanmurray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
yarn format
- Loading branch information
commit 0347a36a0d49212038a895a1b8bbb731cc87c1b5
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess it's somewhere here that means if you run a test twice (or some multiple times) then you don't get the same output
(at least in my experience of testing whether this was deterministic when trying to figure out what was happening)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand this comment, but I would say the algorithm is indeed deterministic, but maybe you mean it will behave differently based on different sized inputs because of the
jLimitbit?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, i wrote a test that ran the split multiple times and compared the output and it didn't match
was generally whitespace ending up on different sides of a split
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, yes this is possible ... basically it stops when the normalised versions match (although I still think it would be deterministic given the same input twice). I can't imagine there being a problem if one side has more whitespace than it should have.