浏览代码

fix: polyfill SVGElement.prototype.contains for IE

Jonas 5 年之前
父节点
当前提交
4b1dcc0404
共有 1 个文件被更改,包括 2 次插入0 次删除
  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