Skip to content

protect against no parent node#1445

Merged
eoghanmurray merged 3 commits intorrweb-io:masterfrom
daibhin:dn-fix/protect-no-parent-node
Apr 10, 2024
Merged

protect against no parent node#1445
eoghanmurray merged 3 commits intorrweb-io:masterfrom
daibhin:dn-fix/protect-no-parent-node

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

@changeset-bot
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
@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
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Jul 31, 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.

2 participants