fix: duplicate textContent for style element cause incremental style mutation invalid (#1417)

fix style element corner case
 - historically we have recorded duplicated css content in certain cases (demonstrated by the attached replayer test). This fix ensures that the replayer doesn't doubly add the content, which can cause problems when further mutations occur
---------
Review and further tests contributed by: Eoghan Murray <eoghan@getthere.ie>
This commit is contained in:
Yun Feng
2024-07-08 14:27:53 -07:00
committed by GitHub
parent e0590bbdf1
commit 40bbc25fc2
7 changed files with 609 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
---
"rrweb-snapshot": patch
"rrweb": patch
---
fix: duplicate textContent for style elements cause incremental style mutations to be invalid