fix svg class updates

This commit is contained in:
Leo Horie 2016-06-07 20:20:30 -04:00
parent 6ff63b224c
commit 693c87f5f1
6 changed files with 82 additions and 40 deletions

View file

@ -191,4 +191,13 @@ o.spec("updateElement", function() {
o(updated.dom).equals(root.firstChild)
o(updated.dom.nodeName).equals("B")
})
o("updates svg class", function() {
var vnode = {tag: "svg", attrs: {className: "a"}}
var updated = {tag: "svg", attrs: {className: "b"}}
render(root, [vnode])
render(root, [updated])
o(updated.dom.attributes["class"].nodeValue).equals("b")
})
})