I changed the code that sets the attributes in Native/VirtualDom.js to this (linenumber 98 and further):
// Set attributes
if (propName === "attributes") {
for (var attrName in propValue) {
var attrValue = propValue[attrName]
if (attrValue === undefined) {
node.removeAttribute(attrName)
} else {
if (attrName.indexOf("xlink:") > -1) {
} else {
node.setAttribute(attrName, attrValue)
}
}
}
return
}
It's just a dirty hack that only works for the xlink namespace. There is probably a more appropriate way to solve this. But, since xlink is the only namespace used (besides svg itself), it is pretty okay. I compiled the code and used it in an offline example... and it works. The images is shown! Proof is this screenshot. The green "JPG icon" (which is in fact a png) is this image on the internet:
http://icons.iconarchive.com/icons/pelfusion/flat-file-type/512/jpg-icon.png

I will file an issue in Github in the virtual-dom library.
Berry
Op zaterdag 8 augustus 2015 22:51:45 UTC+2 schreef Berry Groenendijk: