rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

fix: prevent unnecessary error throwing in stringifyRule

Open megboehlert opened this issue 6 months ago • 1 comments

When a css import rule was being stringified (in stringifyRule) and the rule didn't have a styleSheet property at time of processing, an error would be thrown and passed up to stringifyStyleSheet where it was caught. Once caught, it would set null for the attributes._cssText property of the serializedNode. When watching the replay, these style elements would be empty instead of populated with the correct cssText.

megboehlert avatar Apr 23 '25 23:04 megboehlert