rrweb
rrweb copied to clipboard
fix: The URL involved in the dynamic modification element inline style is not converted to an absolute path
Maybe we need transform all the style attribute here?
Yes, indeed. I'll update it later.
Is this to fix that there are URLs in the background-image attribute?
- does
transformAttributehandle css shorthand e.g.background: black url(/xyz.jpg) no-repeat; - should (can) we do this on the replayer side?
- is it possible to write a test for this?
@eoghanmurray I wrote some test case for this.
Thanks for the test case!
Is this going down the if (name === 'style' && value) code path in transformAttribute ?
I think in that case, calling absoluteToStylesheet directly is preferable as we are not actually dealing with an entire attribute here.
Is it necessary to update your test case with a shorthand one; background: black url(/xyz.jpg) no-repeat; or can we trust that absoluteToStylesheet will do the right thing?