Commit Graph

23 Commits

Author SHA1 Message Date
Yanzhen Yu
88f348a57b snapshot and rebuild shadow DOM
https://github.com/rrweb-io/rrweb/issues/38
2021-03-13 20:46:18 +08:00
yz-yu
98aa732d17 nested record iframe (#63)
* pick nested branch

* iframe snapshot

* temp: add bundle file to git

* revert ignore file

* refactor iframe impl
1. do callback one iframe is loaded, let rrweb handle the rest
2. handle iframe as normal element in rebuild

* rename hook function
2021-02-07 14:00:22 +08:00
Yanzhen Yu
1cc7164f2c fix https://github.com/rrweb-io/rrweb-snapshot/issues/56
safe access tagName of form element
2020-12-21 12:37:13 +08:00
Yanzhen Yu
6c2d85049a fix https://github.com/rrweb-io/rrweb/issues/395 2020-11-29 14:37:11 +08:00
Eoghan Murray
8b0bc7c505 Preserve url quotes (#47)
* Preserve original quotes when rewriting CSS url() paths - important for inline SVG files which often have spaces

* Found an example in the wild with the 'charset=' part left off. This is supported by https://css-tricks.com/lodge/svg/09-svg-data-uris/ ... not sure why we aren't just testing for the 'data:' prefix here?

* Not sure why this is now coming back with a double quote after recent changes here; it's supposed to preserve the single quote from style.css??
2020-10-04 20:46:57 +08:00
Yanzhen Yu
8565b0d692 close #42 fallback to html when doctype is invalid 2020-09-06 16:59:03 +08:00
Jason Barry
db28bc4428 Fixes missing space when converting srcset to use absolute URLs (#40)
* Fixes missing space when converting srcset to use absolute URLs

* Fix integration snapshot
2020-08-05 10:09:59 +08:00
James Bradley
86cf78822d H tags (#28)
* Failing test

* Allow numbers in el name tests

* Allow numbers in el names
2020-03-10 22:33:23 +08:00
Yanzhen Yu
a7a3a76af1 add media state check 2020-01-12 18:01:37 +08:00
Filip Slatinac
f1cae2f68c added cssText check (#23)
* added cssText check

* added testing
2019-11-27 14:17:00 +08:00
Filip Slatinac
acb53f2ef1 replacing invalid tag names by div (#22) 2019-11-25 21:28:20 +08:00
Yanzhen Yu
cd9de42b6d add picture tag test 2019-10-12 16:54:41 +08:00
Filip Slatinac
30bbd9e21d Added srcset support (#18)
* added src set as a parsed attribute

* added tests

* changed to /a

* added multiple attribute handling

* added better comment

* made snapshot ignore invalid input as if it is invalid input in the original DOM, it should stay invalid in the recreated DOM

* added extra absolute test case

* code style

* addressed comments
2019-10-01 11:32:50 +08:00
Whalefreezer
78c8c11e6b add support for css @import rules (#11) 2019-05-06 21:56:33 +08:00
Yanzhen Yu
687c710fe9 iterate style element to get css rules string 2019-02-17 16:34:28 +08:00
Yanzhen Yu
d8c5ae5ae6 handle block element 2018-12-02 23:06:36 +08:00
Yanzhen Yu
ab79af115a update the test snapshot 2018-11-30 22:59:29 +08:00
Yanzhen Yu
e198ea494e ignore iframe src attribute 2018-11-27 14:39:13 +08:00
Yanzhen Yu
7f806128ed add hover class to :hover related css rules 2018-10-31 19:02:26 +08:00
Yanzhen Yu
508bbdfc26 refactor rebuild implementation which mount DOM onto the target document object 2018-10-22 10:34:23 +08:00
Yanzhen Yu
e461136f71 impl the extra child data attribute to align id map 2018-10-16 15:18:07 +08:00
Yanzhen Yu
eef6a6e389 change relative path into absolute path 2018-10-16 12:11:00 +08:00
Yanzhen Yu
3e5c0adcdc use jest-snapshot to apply the snapshot testing 2018-10-15 19:25:52 +08:00