How can I render SVG?
buckle2000 opened this issue · comments
<div id="root"></div>
const h = maquette.h
const projector = maquette.createProjector();
const svg = {
render() {
return h('svg', [
h('circle', {cx:10, cy: 10, fill:'black', r:10})
]);
}
}
projector.append(document.getElementById('root'), () => svg.render());
Uncaught TypeError: Cannot assign to read only property 'cx' of object '#<SVGCircleElement>'
Well, if I wrote
h('circle', { cx: '10', cy: '10', r: '10' })
Then everything is fine.
I made a fix #148