Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add recording of shadow DOM nodes which have been created with the { mode: 'closed' } flag #1739

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

Open
eoghanmurray wants to merge 2 commits into rrweb-io:master
base: master
Choose a base branch
Loading
from eoghanmurray:closedShadowRoot

Conversation

@eoghanmurray
Copy link
Contributor

@eoghanmurray eoghanmurray commented Sep 12, 2025

Leverage monkeypatching on addShadowRoot to save a reference to the mode:closed shadow roots, and record them just like open ones

... mode:closed shadow roots, and record them just like open ones
Copy link

changeset-bot bot commented Sep 12, 2025
edited
Loading

🦋 Changeset detected

Latest commit: 5889179

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

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

Copy link
Contributor Author

If a reviewer dislikes the addition of __rrClosedShadowRoot attributes on elements with closed shadow roots, the remedy would be to move dom.shadowRoot to ShadowDomManager.shadowRoot and pass a reference to shadowDomManager into the rrweb-snapshot/snapshot.ts serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /