rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

[Bug]: Injected styles are cleared when node is added to a `<style>` element

Open billyvg opened this issue 1 year ago • 1 comments

Preflight Checklist

  • [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

v2.0.0-alpha.13

Expected Behavior

Injected styles (block styles, noscript) should remain on the document during playback.

Actual Behavior

Injected styles are being lost when we have a mutation that adds a node to a style element and there is a fast forward event.

Steps to Reproduce

I've wrote up a test case here: https://github.com/rrweb-io/rrweb/pull/1459

Testcase Gist URL

No response

Additional Information

No response

billyvg avatar Apr 24 '24 19:04 billyvg

This sounds like the bug I reported and have a PR up for. https://github.com/rrweb-io/rrweb/pull/1357

jaj1014 avatar May 23 '24 13:05 jaj1014