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 for test cases mentioned in #1379 #1401

Merged

Conversation

dengelke
Copy link
Contributor

@dengelke dengelke commented Jan 24, 2024

Update of parsing function using selector from here and update to logic for , inside () and associated tests to fix #1379

Copy link

changeset-bot bot commented Jan 24, 2024

🦋 Changeset detected

Latest commit: 1f0316c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
rrweb-snapshot Patch
rrweb Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch
rrvideo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jaj1014
Copy link

jaj1014 commented Jan 24, 2024

got around to testing this against the test recording I created that has the {} in the attribute value of the selectors and it seems to be working! It plays back w/ all the correct hovering and such.

thanks @dengelke ! - hopefully this can get into the queue for reviewing the solution 🤞

@Juice10
Copy link
Contributor

Juice10 commented Feb 2, 2024

@dengelke can you add a changeset (see other comment above) and add the link of where you found the css parser to the code so we can keep track of where this came from if it ever needs updating?

@dengelke
Copy link
Contributor Author

dengelke commented Feb 3, 2024

@Juice10 updated the changeset and added a comment in the code

@Juice10 Juice10 merged commit f7c6973 into rrweb-io:master Apr 18, 2024
6 checks passed
eoghanmurray added a commit that referenced this pull request Apr 18, 2024
* better splitting of selectors - overlapping with #1401 
* Add test from example at PostHog/posthog#21427
* ignore brackets inside selector strings
* Add another test as noticed that it's possible to escape strings
* Ensure we are ignoring commas within strings

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
@eoghanmurray
Copy link
Contributor

@dengelke would you be able to take a quick look at #1440 which covered the same ground. I've merged the remainder of it last night into trunk; the remaining case was to do with handling single/double quotes (attr selectors).

billyvg pushed a commit to getsentry/rrweb that referenced this pull request Apr 19, 2024
* better splitting of selectors - overlapping with rrweb-io#1401
* Add test from example at PostHog/posthog#21427
* ignore brackets inside selector strings
* Add another test as noticed that it's possible to escape strings
* Ensure we are ignoring commas within strings

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
billyvg pushed a commit to getsentry/rrweb that referenced this pull request Apr 19, 2024
* better splitting of selectors - overlapping with rrweb-io#1401
* Add test from example at PostHog/posthog#21427
* ignore brackets inside selector strings
* Add another test as noticed that it's possible to escape strings
* Ensure we are ignoring commas within strings

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
billyvg pushed a commit to getsentry/rrweb that referenced this pull request Apr 19, 2024
* Fix known issues

* Run format

* Fix linting errors

* Add comment in code for source of match logic

* Add changeset
billyvg pushed a commit to getsentry/rrweb that referenced this pull request Apr 19, 2024
* better splitting of selectors - overlapping with rrweb-io#1401 
* Add test from example at PostHog/posthog#21427
* ignore brackets inside selector strings
* Add another test as noticed that it's possible to escape strings
* Ensure we are ignoring commas within strings

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
billyvg added a commit to getsentry/rrweb that referenced this pull request Apr 19, 2024
#169)" (#182)

This reverts commit 810b39f.


Reverting this in favor of rrweb-io#1401
and rrweb-io#1440 which is better than
whatever it is I wrote. I kept our tests just to ensure the fix is
compatible with our previous patch.
jaj1014 pushed a commit to pendo-io/rrweb that referenced this pull request Apr 30, 2024
* Fix known issues

* Run format

* Fix linting errors

* Add comment in code for source of match logic

* Add changeset
jaj1014 pushed a commit to pendo-io/rrweb that referenced this pull request Apr 30, 2024
* better splitting of selectors - overlapping with rrweb-io#1401
* Add test from example at PostHog/posthog#21427
* ignore brackets inside selector strings
* Add another test as noticed that it's possible to escape strings
* Ensure we are ignoring commas within strings

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
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.

[Bug]: addHoverClass creating invalid css
4 participants