I have been attempting to insert an image into an SVG using Bobril, but the following code is not functioning as expected:
{
tag: 'svg',
children: {
tag: 'image',
attrs: {
'xlink:href': 'https://raw.githubusercontent.com/Bobris/Bobril/master/logo.png',
x: 0,
y: 0,
width: 200,
height: 200
}
}
}
Although the image tag is included on the page, the image itself does not appear. Interestingly, when I duplicate the element in Chrome's DevTools and paste it again, the image displays correctly. What mistake am I making?