Skip to content

[Bug]: rrweb is not reverting "crossorigin" attribute changes made to "img" elements #904

@dkozlovskyi

Description

@dkozlovskyi

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

Expected Behavior

rrweb sets the original "crossorigin" attribute value or removes it in case it was empty before the recording

Actual Behavior

rrweb is referencing to the attribute in CamelCase ("crossOrigin"), as the result it can not preserve and revert the original value.

Testcase Gist URL

No response

Additional Information

Steps to reproduce:

  1. Go to https://drive.google.com
  2. Start recording
  3. Check the broken thumbnails.

Fix suggestion
reference to the case-sensitive "crossorigin" attribute instead of "crossOrigin".

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