Skip to content

Commit 40ecece

Browse files
committed
fix SVG处理
1 parent ac870a4 commit 40ecece

File tree

4 files changed

+51
-150
lines changed

4 files changed

+51
-150
lines changed

avalon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@
24822482
if (window.VBArray && !isInnate) {//IE下需要区分固有属性与自定义属性
24832483
if (isVML(elem)) {
24842484
isInnate = true
2485-
} else {
2485+
} else if(window.SVGElement && !(elem instanceof SVGElement)) {
24862486
var attrs = elem.attributes || {}
24872487
var attr = attrs[attrName]
24882488
isInnate = attr ? attr.expando === false : attr === null

0 commit comments

Comments
 (0)