Browse Source

fix: polyfill SVGElement.prototype.contains for IE

Jonas 5 năm trước cách đây
mục cha
commit
4b1dcc0404
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/polyfills.js

+ 2 - 0
src/polyfills.js

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