1
0
Эх сурвалжийг харах

fix: polyfill SVGElement.prototype.contains for IE

Jonas 5 жил өмнө
parent
commit
4b1dcc0404

+ 2 - 0
src/polyfills.js

@@ -6,3 +6,5 @@ import "element-remove"
 import "classlist-polyfill"
 import "classlist-polyfill"
 import "@webcomponents/template"
 import "@webcomponents/template"
 import "custom-event-polyfill"
 import "custom-event-polyfill"
+
+SVGElement.prototype.contains = SVGElement.prototype.contains || HTMLElement.prototype.contains