Yanzhen Yu
61a99c642a
Use css parser to add hover class name to selectors.
...
Previously we use a regexp to match all the CSS selectors and add
our hover class name to it, which has been proved not solid and
may be very slow in some situation.
Using a production ready css parser can handle this better and also
provide ability's to do more accurate things to the recorded
stylesheets.
2019-08-04 14:35:35 +08:00
Razvan Sandu
9b0c92fd67
Allow rendering image tags inside svgs during replay ( #13 )
2019-05-23 18:18:10 +08:00
Yanzhen Yu
687c710fe9
iterate style element to get css rules string
2019-02-17 16:34:28 +08:00
Yanzhen Yu
9854e5cf31
add camel case svg element tag names to tag map
2018-12-27 12:53:07 +08:00
Yanzhen Yu
6a910d3eaa
close before open to make sure document was closed
2018-12-21 22:32:01 +08:00
Yanzhen Yu
d8c5ae5ae6
handle block element
2018-12-02 23:06:36 +08:00
Yanzhen Yu
e55b917590
remove _cssText attribute from style element
2018-11-27 15:22:06 +08:00
Yanzhen Yu
e198ea494e
ignore iframe src attribute
2018-11-27 14:39:13 +08:00
Yanzhen Yu
8157b38f99
check is svg when serialization
2018-11-13 16:09:57 +08:00
Yanzhen Yu
216d03dae3
Fix the regexp performance issue
...
Also move the addHoverClass implementation into the rebuild stage.
So if there is still some corner case we have not handled, it will
only affect the replayer part of rrweb.
2018-11-01 11:36:25 +08:00
Yanzhen Yu
2a50fff366
allow skip child when serialize node and rebuild node
2018-10-22 23:03:10 +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
202a674636
use document object from params instead of the one in the current scope
2018-10-21 22:36:07 +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
ffc2b01796
add data attribute to element when rebuild
2018-10-12 15:57:39 +08:00
Yanzhen Yu
1ddb0a3343
return id node map when rebuild
2018-10-12 12:43:16 +08:00
Yanzhen Yu
978e12b089
add strict null check and fix codes
2018-10-08 11:20:48 +08:00
Yanzhen Yu
8b82981b62
try to inline linked stylesheet when in same origin
2018-10-05 23:06:51 +08:00
Yanzhen Yu
05e4103f7a
replace script tag with noscript and inline the states of form field components
2018-09-30 17:38:44 +08:00
Yanzhen Yu
7d1cf13266
setup tests
2018-09-30 16:20:53 +08:00
Yanzhen Yu
3edd364c3b
basic rebuild implementation
2018-09-30 15:26:00 +08:00