Fix SVG element update with tag change

Fixes the new failing test.

Before: the updated element is unknown HTML
After: the updated element is an SVG element
This commit is contained in:
Thibault Duplessis 2016-11-13 11:31:55 +01:00
parent d539c515ea
commit 7163d5f744

View file

@ -213,7 +213,7 @@ module.exports = function($window) {
}
else {
removeNode(old, null)
insertNode(parent, createNode(vnode, hooks, undefined), nextSibling)
insertNode(parent, createNode(vnode, hooks, ns), nextSibling)
}
}
function updateText(old, vnode) {