rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

[Bug]: DOMException: Operation is not supported / Failed to execute 'attachShadow' on 'Element': This element does not support attachShadow

Open dobrynin opened this issue 6 months ago • 0 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?

rrdom

Version

2.0.0-alpha.11

Expected Behavior

"fast-forward" should not run into errors that degrade playback.

Actual Behavior

when using replayer#goto to fast forward through a replay, sometimes errors are thrown by attachShadow and playback does not look correct.

Steps to Reproduce

I haven't been able to figure out how to reproduce this yet. What I do know is that the error happens here: https://github.com/rrweb-io/rrweb/blob/314a8dde5a13095873b89d07bac7c949918bf817/packages/rrdom/src/diff.ts#L188

In one case I looked into, both newRRElement and oldElement appear to be ul elements. ul elements cannot have shadows attached to them, so the error makes sense, but I'm not sure how newRRElement gets shadowRoot set on it in the first place.

Testcase Gist URL

No response

Additional Information

No response

dobrynin avatar Feb 13 '24 00:02 dobrynin