rrweb
rrweb copied to clipboard
[Bug]: use blockSelector to mask img record will throw error: e.matches is not a function
Preflight Checklist
- [X] 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
Version
2.0.0-alpha.4
Expected Behavior
The el matches is not a function, may happen in some el which it's nodetype not be 1 make a judgment before use.
Actual Behavior
Uncaught TypeError: e.matches is not a function
at Nt (
Steps to Reproduce
1、use rrweb record 2、set blockSelector option : img,svg,canvas
Testcase Gist URL
No response
Additional Information
No response