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

protect against no parent node #1445

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Apr 9, 2024

The parentNode does not always exist causing the issue described in PostHog/posthog#21447

Screenshot 2024-04-09 at 17 32 10

We should just protect against it not being there.

Looks like this broke in #1351 merged into the newest alpha-12 release

Copy link

changeset-bot bot commented Apr 9, 2024

🦋 Changeset detected

Latest commit: cab53df

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

This PR includes changesets to release 8 packages
Name Type
rrweb Patch
rrweb-snapshot 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

@eoghanmurray eoghanmurray merged commit 02f50d2 into rrweb-io:master Apr 10, 2024
6 checks passed
@daibhin daibhin deleted the dn-fix/protect-no-parent-node branch April 10, 2024 17:36
Vadman97 added a commit to highlight/highlight that referenced this pull request Apr 17, 2024
## Summary

Fix `.tagName` null access issue reported on
[discord](https://discord.com/channels/1026884757667188757/1229747689353252875)
via rrweb-io/rrweb#1445

highlight/rrweb#115

Closes HIG-4504

## How did you test this change?

reflame

## Are there any deployment considerations?

changeset

## Does this work require review from our design team?

no
jaj1014 pushed a commit to pendo-io/rrweb that referenced this pull request Apr 30, 2024
* protect against a missing parent node during a mutation on an textNode
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.

None yet

2 participants