Skip to content

[Bug]: iframe with srcdoc throwing error TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'. #1736

@santhoshmp89

Description

@santhoshmp89

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?

rrweb

Version

latest

Expected Behavior

It should not crash or throw error.

Actual Behavior

It should not throw error, also crashes the browser.
If we add try catch block then player wont work.

Steps to Reproduce

Here is the JSON

https://jsfiddle.net/cwt8xgku/1/

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions