Disable native Shadow DOM methods for test element
Fix adder toolbar tests in browsers (eg. Chrome) which natively support Shadow DOM v1. The test for Shadow DOM v0 failed because the implementation feature-detected and used the Shadow DOM v1 method `Element.prototype.attachShadow` instead. Fix the issue by patching the test element to hide the native Shadow DOM methods if they exist.
Showing
Please register or sign in to comment