rrweb-io / rrweb

record and replay the web

Home Page:https://www.rrweb.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dobrynin opened this issue · comments

Preflight Checklist

  • 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:

if (!oldElement.shadowRoot) oldElement.attachShadow({ mode: 'open' });

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