wip: svg & parent chain

This commit is contained in:
Evan You
2019-06-03 09:43:28 +08:00
parent 1681787b43
commit 7fe82b1199
3 changed files with 231 additions and 64 deletions

View File

@@ -26,7 +26,7 @@ export function patchProp(
default:
if (isOn(key)) {
patchEvent(el, key.slice(2).toLowerCase(), prevValue, nextValue)
} else if (key in el) {
} else if (!isSVG && key in el) {
patchDOMProp(el, key, nextValue, prevChildren, unmountChildren)
} else {
patchAttr(el, key, nextValue, isSVG)