Replies: 1 comment
-
I don't think Element.prototype.scrollTo = null // whatever you want |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When executing unit test cases, how to remove the methods contained in a DOM to meet the requirements of compatibility testing. For example, how to remove scrollto () in the element interface, because scrollto does not exist in the DOM element in some devices.
Reference link:
https://caniuse.com/?search=scrollto
https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollTo
Beta Was this translation helpful? Give feedback.
All reactions